- Fixed Rails 6.1/7.0 regression in serialization of
nil
/NULL
values - Fixed Docs for
ORM::ActiveRecord::Activist
- Added Rails 7.1 support (s. #384, thanks max.jos)
- Removed Ruby <= 2.7 support
- Removed Rails <= 6.0 support
- Fixed Rescue from
ActiveRecord::ConnectionNotEstablished
(s. #372, thanks Gabe Blair & Vitalie Lazu)
- Fixed Fix regression in generated migration (s. #368, thanks Colin Bonner)
- Fixed Deprecation warnings in Ruby 2.7/3.0 due to double splat operator
- Fixed Ruby warnings due to unused variables
e
in exception handling - Added Ruby 3.1 support
- Added Rails 7.0 support
- Removed Ruby <= 2.4 support
- Removed Rails <= 4.2 support
- Fixed exception when not using MySQL or Postgres (see #335, thanks to Roland Netzsch)
- Added
create_activity!
method which raises exception on failures, much likesave!
in ActiveRecord (see #334, thanks to Jonathan) - Added support for ActiveRecord 6 by whitelisting it (see #332, thanks to Emre Demir)
- Added frozen_string_literal pragma to Ruby files for better performance (see #329, thanks to Krzysztof Rybka)
- Fixed a bug which resulted in crashes when PostgreSQL connection failed (see #328, thanks to Ken Greeff)
- Fixed a bug which resulted in crashes when MySQL connection failed (see #327, thanks to Miquel Sabaté Solà)
- Fixed a bug which resulted in crashes when database didn't exist (see #323, thanks to Anmol Chopra)
- Fixed a bug with requiring not existent file in generated migrations
- Add support for Rails 5.2
- Make config settings thread safe (fixes #284)
- Fix Rspec tests failing in Rails 5 due to ViewHelpers (see #271, thanks to Janusz)
- Support JSON, JSONB and HSTORE types for
parameters
column (see #285, thanks to djvs and #315 (thanks to mateusg)
- Refactor PublicActivity::StoreController to rely on Thread.current instead. (see #252, thanks to Ryan McGeary)
- Remove support for Ruby 1.9.3 and Ruby 2.0.0 (thanks to Ryan McGeary)
- Fix bug with migrations not having an extension in ActiveRecord >= 4.0.0
- Fixed issue with Rails 4 when using ProtectedAttributes gem (see #128)
- General code clean-ups.
- Added support for MongoMapper ORM (thanks to Julio Olivera) PR
- Added support for stable Rails 4.0 while keeping compatibility with Rails 3.X
render_activity
can now render collections of activities instead of just a single one. Also aliased asrender_activities
- Fix issue in rendering multiple activities when options were incomplete for every subsequent activity after the first one
render_activity
now accetps:locals
option. Works the same way as:locals
for Railsrender
method.
- Fixed an issue when AR was loading despite choosing Mongoid in multi-ORM Rails applications (thanks to Robert Ulejczyk)
- Fixed a bug which modified globals (thanks to Weera Wu)
- Fixed undefined constant PublicActivity::Activity for Activist associations (thanks to Стас Сушков)
- #create_activity now correctly returns activity object.
- Fixed :owner not being set correctly when passed to #create_activity (thanks to Drew Miller)
-
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.# All look for app/views/layouts/_activity.erb render_activity @activity, :layout => "activity" render_activity @activity, :layout => "layouts/activity" render_activity @activity, :layout => :activity
-
Fixed support for namespaced classes when transforming into view path.
For example
MyNamespace::CamelCase
now correctly transforms to key:my_namespace_camel_case.create