Class: Exhibit::PresenterGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Exhibit::PresenterGenerator
- Defined in:
- lib/generators/exhibit/presenter_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_presenter ⇒ Object
7 8 9 |
# File 'lib/generators/exhibit/presenter_generator.rb', line 7 def create_presenter template "presenter.rb", "app/presenters/#{file_name}_presenter.rb" end |