Class: Refinery::SettingsGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate_settings_initializerObject



5
6
7
# File 'lib/generators/refinery/settings_generator.rb', line 5

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

#rake_dbObject



9
10
11
# File 'lib/generators/refinery/settings_generator.rb', line 9

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