|
1 | 1 | # Change Log |
| 2 | + |
2 | 3 | All notable changes to this project will be documented in this file. |
3 | 4 |
|
4 | 5 | The format is based on [Keep a Changelog](http://keepachangelog.com/) |
5 | 6 | and this project adheres to [Semantic Versioning](http://semver.org/). |
6 | 7 |
|
| 8 | +## [4.0.0] - 2024-06-03 |
| 9 | + |
| 10 | +### Added |
| 11 | + |
| 12 | +- Add support for rails 6, 6.1, 7, 7.1 while removing rails 4.x and 5.x |
| 13 | + from the travis matrix. |
| 14 | +- Add support for ruby 3.0, 3.1, and 3.2 |
| 15 | +- Update test coverage |
| 16 | +- Add `.exists?` support to seamlessly check in both the model and super model |
| 17 | + |
| 18 | +### Fixed |
| 19 | + |
| 20 | +- Bump minimum ruby version to 3.0 |
| 21 | +- Collection methods such as `<<` work now under rails 6.1 |
| 22 | +- Prepare for Rails 6.2 breaking change by updating how errors |
| 23 | + are accessed and removing warning. They are now ruby objects. |
| 24 | + see [this](https://api.rubyonrails.org/v6.1.0/classes/ActiveModel/Errors.html) |
| 25 | +- Fixed rails `6.0.x` compatibility for `ActiveRecord::Errors` |
| 26 | +- Handle kwargs in ruby 3 in methods delegated to supermodel |
| 27 | +- Fix `.actables` to restrict based on type. |
| 28 | + |
| 29 | +### Removed |
| 30 | + |
| 31 | +- Remove last ruby 3 warnings and make the gem **totally compatible with |
| 32 | + ruby 3** |
| 33 | +- Remove support for rails 4.x and 5.x, as well as ruby 2.x |
| 34 | + |
| 35 | +## [3.0.1] - 2018-04-25 |
| 36 | + |
| 37 | +### Changed |
| 38 | + |
| 39 | +- Remove bi-directional autosave and use callbacks |
| 40 | +- Ensure that non_cyclic_save does not get called for a new_record |
| 41 | + |
| 42 | +## [3.0.0] - 2019-02-21 |
| 43 | + |
| 44 | +## [2.5.0] - 2017-07-29 |
| 45 | + |
| 46 | +### Changed |
| 47 | + |
| 48 | +- Drop support for Rails >= 5.0 |
| 49 | +- Remove warnings occurring in Rails 5.1 |
| 50 | + |
7 | 51 | ## [2.4.2] - 2017-04-20 |
| 52 | + |
8 | 53 | ### Fixed |
| 54 | + |
9 | 55 | - Fix querying for conditions with hashes. |
10 | 56 |
|
11 | 57 | ## [2.4.1] - 2017-04-19 |
| 58 | + |
12 | 59 | ### Fixed |
| 60 | + |
13 | 61 | - Make ActiveRecord::Relation#where! work. |
14 | 62 |
|
15 | 63 | ## [2.4.0] - 2017-04-16 |
| 64 | + |
16 | 65 | ### Changed |
| 66 | + |
17 | 67 | - 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. |
18 | 68 |
|
19 | 69 | ## [2.3.1] - 2017-04-15 |
| 70 | + |
20 | 71 | ### Fixed |
| 72 | + |
21 | 73 | - Make calling supermodel class methods work through relations/associations as well |
22 | 74 |
|
23 | 75 | ## [2.3.0] - 2017-04-12 |
| 76 | + |
24 | 77 | ### Fixed |
| 78 | + |
25 | 79 | - Prevent duplicate validation errors (fixes https://github.com/krautcomputing/active_record-acts_as/issues/2) |
26 | 80 |
|
27 | 81 | ### Added |
| 82 | + |
28 | 83 | - Added support for touching submodel attributes (https://github.com/krautcomputing/active_record-acts_as/pull/3, thanks to [dezmathio](https://github.com/dezmathio)!) |
29 | 84 |
|
30 | 85 | ## [2.2.1] - 2017-04-08 |
| 86 | + |
31 | 87 | ### Fixed |
| 88 | + |
32 | 89 | - Make sure submodel instance changes are retained when calling `submodel_instance.acting_as.specific` |
33 | 90 |
|
34 | 91 | ## [2.2.0] - 2017-04-08 |
| 92 | + |
35 | 93 | ### Added |
| 94 | + |
36 | 95 | - Added support for calling superclass methods on the subclass or subclass relations |
37 | 96 |
|
38 | 97 | ## [2.1.1] - 2017-03-22 |
| 98 | + |
39 | 99 | ### Fixed |
| 100 | + |
40 | 101 | - Fix querying subclass with `where`, for `enum` (and possibly other) attributes the detection whether the attribute is defined on the superclass or subclass didn't work. |
41 | 102 |
|
42 | 103 | ## [2.1.0] - 2017-03-17 |
| 104 | + |
43 | 105 | ### Added |
| 106 | + |
44 | 107 | - Access superobjects from query on submodel by calling `.actables` |
45 | 108 |
|
46 | 109 | ## [2.0.9] - 2017-03-02 |
| 110 | + |
47 | 111 | ### Fixed |
| 112 | + |
48 | 113 | - Fix handling of query conditions that contain a dot |
49 | 114 |
|
50 | 115 | ## [2.0.8] - 2017-02-17 |
| 116 | + |
51 | 117 | ### Fixed |
| 118 | + |
52 | 119 | - Avoid circular dependency on destroy |
53 | 120 |
|
54 | 121 | ## [2.0.7] - 2017-02-17 [YANKED] |
| 122 | + |
55 | 123 | ### Fixed |
| 124 | + |
56 | 125 | - Set reference to submodel when building supermodel |
57 | 126 |
|
58 | 127 | ## [2.0.6] - 2017-02-17 |
| 128 | + |
59 | 129 | ### Added |
| 130 | + |
60 | 131 | - Allow arguments to #touch and forward them to the supermodel |
61 | 132 |
|
62 | 133 | ## [2.0.5] - 2016-12-20 |
| 134 | + |
63 | 135 | ### Fixed |
| 136 | + |
64 | 137 | - Don't try to touch supermodel if it's not persisted |
65 | 138 | - Call `#destroy`, not `#delete`, on the submodule by default to trigger callbacks |
66 | 139 |
|
67 | 140 | ## [2.0.4] - 2016-12-07 |
| 141 | + |
68 | 142 | ### Fixed |
| 143 | + |
69 | 144 | - Touch associated objects if supermodel is updated |
70 | 145 |
|
71 | 146 | ## [2.0.3] - 2016-11-07 |
| 147 | + |
72 | 148 | ### Fixed |
| 149 | + |
73 | 150 | - Fix defining associations on `acting_as` model after calling `acting_as` |
74 | 151 |
|
75 | 152 | ## [2.0.2] - 2016-11-06 |
| 153 | + |
76 | 154 | ### Fixed |
| 155 | + |
77 | 156 | - Call `#touch` on `actable` object when it's called on the `acting_as` object |
78 | 157 |
|
79 | 158 | ## [2.0.1] - 2016-10-05 |
| 159 | + |
80 | 160 | ### Added |
| 161 | + |
81 | 162 | - Added this changelog |
82 | 163 | - Added `touch` option to skip touching the `acting_as` object (https://github.com/hzamani/active_record-acts_as/pull/78, thanks to [allenwq](https://github.com/allenwq)!) |
83 | 164 |
|
84 | 165 | ## [2.0.0] - 2016-09-14 |
| 166 | + |
85 | 167 | ### Added |
| 168 | + |
86 | 169 | - Added support for Rails 5 (https://github.com/hzamani/active_record-acts_as/pull/80, thanks to [nicklandgrebe](https://github.com/nicklandgrebe)!) |
87 | 170 | - Allow specifying `association_method` parameter (https://github.com/hzamani/active_record-acts_as/pull/72, thanks to [tombowo](https://github.com/tombowo)!) |
88 | 171 |
|
89 | 172 | ### Removed |
| 173 | + |
90 | 174 | - Dropped support for Ruby < 2.2 and ActiveSupport/ActiveRecord < 4.2 |
91 | 175 |
|
92 | 176 | ### Fixed |
| 177 | + |
93 | 178 | - Fixed `remove_actable` migration helper (https://github.com/hzamani/active_record-acts_as/pull/71, thanks to [nuclearpidgeon](https://github.com/nuclearpidgeon)!) |
94 | 179 |
|
95 | 180 | [Unreleased]: https://github.com/krautcomputing/active_record-acts_as/compare/v2.4.2...HEAD |
|
0 commit comments