2013-08-11 10:36:55 +08:00
|
|
|
class Activity < ActiveRecord::Base
|
|
|
|
attr_accessible :act_id, :act_type, :user_id
|
|
|
|
belongs_to :act, :polymorphic => true
|
2013-08-12 15:37:42 +08:00
|
|
|
belongs_to :user
|
|
|
|
|
|
|
|
validates_presence_of :act_id, :act_type, :user_id
|
2013-08-11 10:36:55 +08:00
|
|
|
end
|