Class: Prospecto::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/prospecto/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#write_application_presenterObject



5
6
7
# File 'lib/generators/prospecto/install/install_generator.rb', line 5

def write_application_presenter
  template 'application_presenter.rb', "app/presenters/application_presenter.rb"
end

#write_application_presenter_specObject



9
10
11
# File 'lib/generators/prospecto/install/install_generator.rb', line 9

def write_application_presenter_spec
  template 'application_presenter_spec.rb', "spec/presenters/application_presenter_spec.rb"
end