Sha256: e8338469568b21185c23336390bf09e95a84a2cb6a2b7399b43a945cbd5c5d5a
Contents?: true
Size: 521 Bytes
Versions: 38
Compression:
Stored size: 521 Bytes
Contents
class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, # :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me acts_as_translator def can_admin_translations? self.id == User.first.id end end
Version data entries
38 entries across 38 versions & 2 rubygems