Skip to content

Commit 882134b

Browse files
committed
Merge pull request #2 from andres99x/rails4
Rails4
2 parents 37f02c1 + 52ef5ba commit 882134b

File tree

2 files changed

+133
-128
lines changed

2 files changed

+133
-128
lines changed

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)