Sha256: c446b15e9bf04462eebb3677407ab5634f368b5ad0e8ee80c00427759d055f82

Contents?: true

Size: 345 Bytes

Versions: 8

Compression:

Stored size: 345 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

  storytime_user

  def admin?
    Pundit.policy(self, :admin).manage?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 spec/dummy/app/models/user.rb
storytime-2.1.5 spec/dummy/app/models/user.rb
storytime-2.1.4 spec/dummy/app/models/user.rb
storytime-2.1.3 spec/dummy/app/models/user.rb
storytime-2.1.2 spec/dummy/app/models/user.rb
storytime-2.1.1 spec/dummy/app/models/user.rb
storytime-2.1.0 spec/dummy/app/models/user.rb
storytime-2.0.0 spec/dummy/app/models/user.rb