Class: UberPresenter::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UberPresenter::InstallGenerator
- Defined in:
- lib/generators/uber_presenter/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
7 8 9 10 11 12 |
# File 'lib/generators/uber_presenter/install_generator.rb', line 7 def install copy_file '.keep', 'app/presenters/.keep' inject_into_file('config/application.rb', after: "class Application < Rails::Application\n") do " config.autoload_paths << Rails.root.join('app', 'presenters').to_s\n" end end |