Permalink
Browse files

Code fixes in User model.

  • Loading branch information...
1 parent e1001bd commit d901dc5034182a5fad8853c252318ee405cf1cd2 @huerlisi committed Jan 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/user.rb
View
@@ -4,7 +4,7 @@ class User < ActiveRecord::Base
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable
# Setup accessible (or protected) attributes for your model
- attr_accessible :email, :password, :password_confirmation, :remember_me, :locked_at, :role_texts
+ attr_accessible :email, :password, :password_confirmation, :remember_me, :locked_at
# Authorization roles
has_and_belongs_to_many :roles, :autosave => true
@@ -18,7 +18,7 @@ def role_name
end
def role?(role)
- return !!self.roles.find_by_name(role.to_s)
+ !!self.roles.find_by_name(role.to_s)
end
def role_texts

0 comments on commit d901dc5

Please sign in to comment.