Module: Devise::Generators::OrmHelpers

Included in:
ActiveRecord::Generators::DeviseGenerator, Mongoid::Generators::DeviseGenerator
Defined in:
lib/generators/devise/orm_helpers.rb

Instance Method Summary collapse

Instance Method Details

#model_contentsObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/devise/orm_helpers.rb', line 4

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

CONTENT
  buffer
end