Module: Kingsman::Generators::OrmHelpers

Included in:
ActiveRecord::Generators::KingsmanGenerator, Mongoid::Generators::KingsmanGenerator
Defined in:
lib/generators/kingsman/orm_helpers.rb

Instance Method Summary collapse

Instance Method Details

#model_contentsObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/generators/kingsman/orm_helpers.rb', line 6

def model_contents
  buffer = <<-CONTENT
  # Include default kingsman modules. Others available are:
  # :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
  kingsman :database_authenticatable, :registerable,
   :recoverable, :rememberable, :validatable

CONTENT
  buffer
end