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

- (Object) app_name



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

- (Object) copy_configuration_file



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