Class: PresenterGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- PresenterGenerator
- Defined in:
- lib/generators/presenter/presenter_generator.rb
Instance Method Summary collapse
Instance Method Details
#manifest ⇒ Object
8 9 10 11 12 13 |
# File 'lib/generators/presenter/presenter_generator.rb', line 8 def manifest actions.each do |action| @action = action template "view_presenter_template.html.erb", "app/presenters/#{file_name}/#{action}_presenter.rb" end end |