Skip to content

Commit c058833

Browse files
committed
make attributes attr_accessible
Rails 3.0 makes everything protected by default.
1 parent be79690 commit c058833

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/models/preference.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class Preference < ActiveRecord::Base
1414
validates_presence_of :name, :owner_id, :owner_type
1515
validates_presence_of :group_type, :if => :group_id?
1616

17+
attr_accessible :name, :group_id, :group_type
18+
1719
class << self
1820
# Splits the given group into its corresponding id and type. For simple
1921
# primitives, the id will be nil. For complex types, specifically

0 commit comments

Comments
 (0)