Class: CouchrestModel::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/couchrest_model/config/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#app_nameObject


8
9
10
# File 'lib/rails/generators/couchrest_model/config/config_generator.rb', line 8

def app_name
  Rails::Application.subclasses.first.parent.to_s.underscore
end

#copy_configuration_fileObject


12
13
14
# File 'lib/rails/generators/couchrest_model/config/config_generator.rb', line 12

def copy_configuration_file
  template 'couchdb.yml', File.join('config', "couchdb.yml")
end