Skip to content

Commit

Permalink
Merge pull request #2 from andres99x/rails4
Browse files Browse the repository at this point in the history
Rails4
  • Loading branch information
andres99x committed Dec 19, 2014
2 parents 37f02c1 + 52ef5ba commit 882134b
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 128 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
Loading

0 comments on commit 882134b

Please sign in to comment.