All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add support for rails 6, 6.1, 7, 7.1 while removing rails 4.x and 5.x from the travis matrix.
- Add support for ruby 3.0, 3.1, and 3.2
- Update test coverage
- Add
.exists?
support to seamlessly check in both the model and super model
- Bump minimum ruby version to 3.0
- Collection methods such as
<<
work now under rails 6.1 - Prepare for Rails 6.2 breaking change by updating how errors are accessed and removing warning. They are now ruby objects. see this
- Fixed rails
6.0.x
compatibility forActiveRecord::Errors
- Handle kwargs in ruby 3 in methods delegated to supermodel
- Fix
.actables
to restrict based on type.
- Remove last ruby 3 warnings and make the gem totally compatible with ruby 3
- Remove support for rails 4.x and 5.x, as well as ruby 2.x
- Remove bi-directional autosave and use callbacks
- Ensure that non_cyclic_save does not get called for a new_record
- Drop support for Rails >= 5.0
- Remove warnings occurring in Rails 5.1
2.4.2 - 2017-04-20
- Fix querying for conditions with hashes.
2.4.1 - 2017-04-19
- Make ActiveRecord::Relation#where! work.
2.4.0 - 2017-04-16
- Don't make all supermodel class methods callable by submodel, only scopes. Add
callable_by_submodel
to supermodel so users can make their own class methods callable by submodels.
2.3.1 - 2017-04-15
- Make calling supermodel class methods work through relations/associations as well
2.3.0 - 2017-04-12
- Prevent duplicate validation errors (fixes chaadow/active_record-acts_as#2)
- Added support for touching submodel attributes (chaadow/active_record-acts_as#3, thanks to dezmathio!)
2.2.1 - 2017-04-08
- Make sure submodel instance changes are retained when calling
submodel_instance.acting_as.specific
2.2.0 - 2017-04-08
- Added support for calling superclass methods on the subclass or subclass relations
2.1.1 - 2017-03-22
- Fix querying subclass with
where
, forenum
(and possibly other) attributes the detection whether the attribute is defined on the superclass or subclass didn't work.
2.1.0 - 2017-03-17
- Access superobjects from query on submodel by calling
.actables
2.0.9 - 2017-03-02
- Fix handling of query conditions that contain a dot
2.0.8 - 2017-02-17
- Avoid circular dependency on destroy
2.0.7 - 2017-02-17 [YANKED]
- Set reference to submodel when building supermodel
2.0.6 - 2017-02-17
- Allow arguments to #touch and forward them to the supermodel
2.0.5 - 2016-12-20
- Don't try to touch supermodel if it's not persisted
- Call
#destroy
, not#delete
, on the submodule by default to trigger callbacks
2.0.4 - 2016-12-07
- Touch associated objects if supermodel is updated
2.0.3 - 2016-11-07
- Fix defining associations on
acting_as
model after callingacting_as
2.0.2 - 2016-11-06
- Call
#touch
onactable
object when it's called on theacting_as
object
2.0.1 - 2016-10-05
- Added this changelog
- Added
touch
option to skip touching theacting_as
object (hzamani#78, thanks to allenwq!)
2.0.0 - 2016-09-14
- Added support for Rails 5 (hzamani#80, thanks to nicklandgrebe!)
- Allow specifying
association_method
parameter (hzamani#72, thanks to tombowo!)
- Dropped support for Ruby < 2.2 and ActiveSupport/ActiveRecord < 4.2
- Fixed
remove_actable
migration helper (hzamani#71, thanks to nuclearpidgeon!)