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

Version Path
translation_center-1.7.2 test/dummy/app/models/user.rb
afalkear_translation_center-1.8.4 test/dummy/app/models/user.rb
afalkear_translation_center-1.8.3 test/dummy/app/models/user.rb
afalkear_translation_center-1.8.2 test/dummy/app/models/user.rb
afalkear_translation_center-1.8.1 test/dummy/app/models/user.rb
afalkear_translation_center-1.8.0 test/dummy/app/models/user.rb
afalkear_translation_center-1.7.9 test/dummy/app/models/user.rb
afalkear_translation_center-1.7.8 test/dummy/app/models/user.rb
afalkear_translation_center-0.0.0 test/dummy/app/models/user.rb
afalkear_translation_center-1.7.7 test/dummy/app/models/user.rb
translation_center-1.7.1 test/dummy/app/models/user.rb
translation_center-1.7.0 test/dummy/app/models/user.rb
translation_center-1.6.10 test/dummy/app/models/user.rb
translation_center-1.6.9 test/dummy/app/models/user.rb
translation_center-1.6.8 test/dummy/app/models/user.rb
translation_center-1.6.7 test/dummy/app/models/user.rb
translation_center-1.6.6 test/dummy/app/models/user.rb
translation_center-1.6.5 test/dummy/app/models/user.rb
translation_center-1.6.4 test/dummy/app/models/user.rb
translation_center-1.6.3 test/dummy/app/models/user.rb