Class: UbigeoRails::Generators::SeedsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UbigeoRails::Generators::SeedsGenerator
- Defined in:
- lib/generators/ubigeo_rails/seeds_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_to_seeds ⇒ Object
4 5 6 7 8 |
# File 'lib/generators/ubigeo_rails/seeds_generator.rb', line 4 def add_to_seeds inject_into_file('db/seeds.rb', after: '') do "UbigeoRails.seed_db!" end end |