Sha256: 84aee1028073f53d94ce0dd07fdce3c5a0ca91876c6547eac64830afeb2f3d8d
Contents?: true
Size: 597 Bytes
Versions: 14
Compression:
Stored size: 597 Bytes
Contents
module Devise module Generators module OrmHelpers def model_contents <<-CONTENT # Include default devise modules. Others available are: # :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable CONTENT end def model_exists? File.exists?(File.join(destination_root, model_path)) end def model_path @model_path ||= File.join("app", "models", "#{file_path}.rb") end end end end
Version data entries
14 entries across 14 versions & 3 rubygems