Skip to content

Instantly share code, notes, and snippets.

@rocodev-tech
Created July 7, 2014 07:42
Show Gist options
  • Save rocodev-tech/306f22822c6fd3143ae6 to your computer and use it in GitHub Desktop.
Save rocodev-tech/306f22822c6fd3143ae6 to your computer and use it in GitHub Desktop.
artstore / app / models / user.rb
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
def admin?
is_admin
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment