Sha256: 8838abb737a983704e8572f2da82491da5a5ff5a6d155de08240308f542e2949

Contents?: true

Size: 342 Bytes

Versions: 1

Compression:

Stored size: 342 Bytes

Contents

module Doorkeeper
  module MongoMapper
    class IndexesGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)
      desc "Creates an indexes file for use with MongoMapper's rake db:index"

      def install
        template "indexes.rb", "db/indexes.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb