app/models/activity.rb in adva-0.1.4 vs app/models/activity.rb in adva-0.2.0

- old
+ new

@@ -1,5 +1,7 @@ +require "adva/belongs_to_author" + class Activity < ActiveRecord::Base belongs_to :site belongs_to :section belongs_to :object, :polymorphic => true @@ -9,9 +11,10 @@ return attrs[name.to_s] if attrs && attrs.has_key?(name.to_s) super name, *args end } + include Adva::BelongsToAuthor belongs_to_author serialize :actions serialize :object_attributes