Sha256: d2d9e982dea24153bdfa1faf1906b9aa8e45d71f28c4345fd9c8e0c15607fad3

Contents?: true

Size: 360 Bytes

Versions: 5

Compression:

Stored size: 360 Bytes

Contents

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  include Tang::Customer

  ROLES = %i[admin]

  def admin?
    self.role == 'admin'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tang-0.2.1 spec/tang_app/app/models/user.rb
tang-0.2.0 spec/tang_app/app/models/user.rb
tang-0.1.0 spec/tang_app/app/models/user.rb
tang-0.0.9 spec/tang_app/app/models/user.rb
tang-0.0.8 spec/tang_app/app/models/user.rb