Skip to content

Commit

Permalink
make attributes attr_accessible
Browse files Browse the repository at this point in the history
Rails 3.0 makes everything protected by default.
  • Loading branch information
kareem committed Sep 10, 2012
1 parent be79690 commit c058833
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/preference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Preference < ActiveRecord::Base
validates_presence_of :name, :owner_id, :owner_type
validates_presence_of :group_type, :if => :group_id?

attr_accessible :name, :group_id, :group_type

class << self
# Splits the given group into its corresponding id and type. For simple
# primitives, the id will be nil. For complex types, specifically
Expand Down

0 comments on commit c058833

Please sign in to comment.