Class: Refinery::ImagesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
images/lib/generators/refinery/images/images_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_images_initializerObject


12
13
14
15
# File 'images/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_dbObject


8
9
10
# File 'images/lib/generators/refinery/images/images_generator.rb', line 8

def rake_db
  rake "refinery_images:install:migrations" unless self.options[:skip_migrations]
end