Class: Readability::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Readability::Generators::InstallGenerator
- Defined in:
- lib/rails/generators/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
7 8 9 |
# File 'lib/rails/generators/install_generator.rb', line 7 def copy_config template "readability.yml", "config/readability.yml" end |
#copy_routes ⇒ Object
11 12 13 14 |
# File 'lib/rails/generators/install_generator.rb', line 11 def copy_routes route "match 'readability/callback', to: 'controller#action', as: 'readability_callback'" route "match 'readability/logout', to: 'controller#action', as: 'readability_logout'" end |
#show_readme ⇒ Object
16 17 18 |
# File 'lib/rails/generators/install_generator.rb', line 16 def show_readme readme "README" if behavior == :invoke end |