PublicActivity v1.0 Release Notes
Release Date: 2013-02-10 // about 11 years ago-
- ๐ Now supports Mongoid 3 and Active Record.
- โ Added indexes for polymorphic column pairs to speed up queries in ActiveRecord
#create_activity
now returns the newly created Activity object- ๐ Support for custom Activity attributes. Now if you need a custom relation for Activities you can create a migration which adds the desired column, whitelist the attribute, and then you can simply pass the value to #create_activity
#tracked
can now accept a single Symbol for its:only
and:except
options.- It is now possible to include
PublicActivity::Common
in your models if you just want to use#create_activity
method and skip the default CRUD tracking. #render_activity
now accepts Symbols or Strings for :layout parameter. ### Example
# All look for app/views/layouts/_activity.erb render_activity @activity, :layout => "activity" render_activity @activity, :layout => "layouts/activity" render_activity @activity, :layout => :activity