Sha256: f77974ffae3abe29e86d67aece6113224aec8ce17f1dcbe787c475200976f732
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
## Rails 7.2.2 (October 30, 2024) ## * Fix regression in `alias_attribute` to work with user defined methods. `alias_attribute` would wrongly assume the attribute accessor was generated by Active Model. ```ruby class Person include ActiveModel::AttributeMethods define_attribute_methods :name attr_accessor :name alias_attribute :full_name, :name end person.full_name # => NoMethodError: undefined method `attribute' for an instance of Person ``` *Jean Boussier* ## Rails 7.2.1.2 (October 23, 2024) ## * No changes. ## Rails 7.2.1.1 (October 15, 2024) ## * No changes. ## Rails 7.2.1 (August 22, 2024) ## * No changes. ## Rails 7.2.0 (August 09, 2024) ## * Fix a bug where type casting of string to `Time` and `DateTime` doesn't calculate minus minute value in TZ offset correctly. *Akira Matsuda* * Port the `type_for_attribute` method to Active Model. Classes that include `ActiveModel::Attributes` will now provide this method. This method behaves the same for Active Model as it does for Active Record. ```ruby class MyModel include ActiveModel::Attributes attribute :my_attribute, :integer end MyModel.type_for_attribute(:my_attribute) # => #<ActiveModel::Type::Integer ...> ``` *Jonathan Hefner* Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/activemodel/CHANGELOG.md) for previous changes.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activemodel-7.2.2 | CHANGELOG.md |