Sha256: 77a648df53dfa940d84d67265111e9db4f2085cfcea86f326830b6f4ad18d069

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 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

6 entries across 6 versions & 1 rubygems

Version Path
doorkeeper-1.4.2 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
doorkeeper-1.4.1 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
doorkeeper-1.4.0 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
doorkeeper-1.3.1 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
doorkeeper-1.3.0 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
doorkeeper-1.2.0 lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb