Class: Rails::Mongoid::Railtie
- Defined in:
- lib/mongoid/railtie.rb
Overview
:nodoc:
Class Method Summary collapse
-
.generator ⇒ Symbol
Determine which generator to use.
Class Method Details
.generator ⇒ Symbol
Determine which generator to use. app_generators was introduced after 3.0.0.
22 23 24 |
# File 'lib/mongoid/railtie.rb', line 22 def self.generator config.respond_to?(:app_generators) ? :app_generators : :generators end |