Class: Rails::Mongoid::Railtie

Inherits:
Railtie
  • Object
show all
Defined in:
lib/mongoid/railtie.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.generatorSymbol

Determine which generator to use. app_generators was introduced after 3.0.0.

Examples:

Get the generators method.

railtie.generators

Returns:

  • (Symbol)

    The method name to use.

Since:

  • 2.0.0.rc.4



22
23
24
# File 'lib/mongoid/railtie.rb', line 22

def self.generator
  config.respond_to?(:app_generators) ? :app_generators : :generators
end