Class: Refinery::RegistrationsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Refinery::RegistrationsGenerator
- Defined in:
- lib/generators/refinery/registrations_generator.rb
Instance Method Summary collapse
Instance Method Details
#append_load_seed_data ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/refinery/registrations_generator.rb', line 7 def append_load_seed_data create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb')) append_file 'db/seeds.rb', :verbose => true do <<-EOH # Added by Refinery CMS Registrations extension Refinery::RaceRegistrations::Engine.load_seed EOH end end |
#rake_db ⇒ Object
3 4 5 |
# File 'lib/generators/refinery/registrations_generator.rb', line 3 def rake_db rake("refinery_registrations:install:migrations") end |