socialforge/app/models/praise_tread.rb

7 lines
211 B
Ruby
Raw Normal View History

class PraiseTread < ActiveRecord::Base
attr_accessible :user_id,:praise_tread_object_id,:praise_tread_object_type,:praise_or_tread
2014-04-22 08:56:26 +08:00
belongs_to :user
belongs_to :praise_tread_object, polymorphic: true
end