We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37f02c1 + 52ef5ba commit 882134bCopy full SHA for 882134b
2 files changed
app/models/preference.rb
@@ -14,6 +14,8 @@ class Preference < ActiveRecord::Base
14
validates_presence_of :name, :owner_id, :owner_type
15
validates_presence_of :group_type, :if => :group_id?
16
17
+ attr_accessible :name, :group_id, :group_type
18
+
19
class << self
20
# Splits the given group into its corresponding id and type. For simple
21
# primitives, the id will be nil. For complex types, specifically
0 commit comments