Class: Refinery::PageImagesGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_page_images_initializerObject



10
11
12
# File 'lib/generators/refinery/page_images_generator.rb', line 10

def generate_page_images_initializer
  template "config/initializers/refinery/page_images.rb.erb", File.join(destination_root, "config", "initializers", "refinery", "page_images.rb")
end

#rake_dbObject



6
7
8
# File 'lib/generators/refinery/page_images_generator.rb', line 6

def rake_db
  rake("refinery_page_images:install:migrations")
end