Class: EnjuBiblio::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- EnjuBiblio::SetupGenerator
- Defined in:
- lib/generators/enju_biblio/setup/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_setup_files ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/generators/enju_biblio/setup/setup_generator.rb', line 5 def copy_setup_files directory("db/fixtures", "db/fixtures/enju_biblio") return if file == 'fixture' inject_into_class 'app/controllers/application_controller.rb', ApplicationController, " include EnjuBiblio::Controller\n" append_to_file("config/schedule.rb", File.open(File.('../templates', __FILE__) + '/config/schedule.rb').read) end |