Sha256: ba44204f76554765ab6ba8b83d20d4fbbf6958ca4789747878317bbd0940d9a7

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 Bytes

Contents

class User < ActiveRecord::Base

  # ------------------------------------------ Devise

  # Include default devise modules. Others available are:
  # :lockable, :timeoutable, :omniauthable, :confirmable, :registerable
  devise :database_authenticatable, :recoverable, :rememberable, :trackable, 
         :validatable

  # ------------------------------------------ Scopes

  scope :admins, -> { where(:is_admin => true) }

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cambium-0.3.0 lib/generators/cambium/templates/app/models/user.rb
cambium-0.2.2 lib/generators/cambium/templates/app/models/user.rb
cambium-0.2.1 lib/generators/cambium/templates/app/models/user.rb
cambium-0.2.0 lib/generators/cambium/templates/app/models/user.rb
cambium-0.0.2 lib/generators/cambium/templates/app/models/user.rb
cambium-0.0.1 lib/generators/cambium/templates/app/models/user.rb