module PublicActivity::ORM::ActiveRecord::Trackable
Implements {PublicActivity::Trackable} for ActiveRecord
@see PublicActivity::Trackable
Public Class Methods
extended(base)
click to toggle source
Creates an association for activities where self is the trackable object.
# File lib/public_activity/orm/active_record/trackable.rb, line 11 def self.extended(base) base.has_many :activities, :class_name => "::PublicActivity::Activity", :as => :trackable end