Sha256: 92b2529196dfcb747d516fbb9fb69c5619860532b75ca5186d50c41bd9723975

Contents?: true

Size: 426 Bytes

Versions: 16

Compression:

Stored size: 426 Bytes

Contents

require 'rails/generators/couchrest_model'

module CouchrestModel
  module Generators
    class ConfigGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

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

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

    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
couchrest_model-2.2.0.beta2 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.2.0.beta1 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.1.0.rc1 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.1.0.beta2 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.1.0.beta1 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.4 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.3 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.1 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.0 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.0.beta2 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-2.0.0.beta lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-1.2.0.beta lib/rails/generators/couchrest_model/config/config_generator.rb
openlogic-couchrest_model-1.0.0 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-1.1.2 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-1.1.1 lib/rails/generators/couchrest_model/config/config_generator.rb
couchrest_model-1.1.0 lib/rails/generators/couchrest_model/config/config_generator.rb