Class: Refinery::ImagesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Refinery::ImagesGenerator
- Defined in:
- lib/generators/refinery/images/images_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_images_initializer ⇒ Object
12 13 14 15 |
# File 'lib/generators/refinery/images/images_generator.rb', line 12 def generate_images_initializer template "config/initializers/refinery/images.rb.erb", File.join(destination_root, "config", "initializers", "refinery", "images.rb") end |
#rake_db ⇒ Object
8 9 10 |
# File 'lib/generators/refinery/images/images_generator.rb', line 8 def rake_db rake "refinery_images:install:migrations" unless self.[:skip_migrations] end |