Skip to content

Commit

Permalink
Fix for Issue #48
Browse files Browse the repository at this point in the history
Added :is_admin to attr_accessible so that users can be made admins.
  • Loading branch information
mvbattista committed Mar 10, 2012
1 parent 9c538be commit 20c7533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class User < ActiveRecord::Base
:recoverable, :rememberable, :validatable

# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :locale
attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :locale, :is_admin

has_many :contents
has_many :submissions, :foreign_key => "moderator_id"
Expand Down

0 comments on commit 20c7533

Please sign in to comment.