Class: Refinery::ResourcesGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_resources_initializerObject


12
13
14
15
# File 'resources/lib/generators/refinery/resources/resources_generator.rb', line 12

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

#rake_dbObject


8
9
10
# File 'resources/lib/generators/refinery/resources/resources_generator.rb', line 8

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