Skip to content

Commit

Permalink
Merge pull request #1 from SocialWOD/master
Browse files Browse the repository at this point in the history
Rails 4 Upgrade
  • Loading branch information
andres99x committed Dec 19, 2014
2 parents d0774bb + c058833 commit 52ef5ba
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 52ef5ba

Please sign in to comment.