rails/activemodel/lib/active_model
Jean Boussier 403743ed88 Fix alias_attribute to ignore methods defined in parent classes
Fix: https://github.com/rails/rails/issues/52144

When defining regular attributes, inherited methods aren't overriden,
however when defining aliased attributes, inherited methods aren't
considered.

This behavior could be debatted, but that was the behavior prior
to https://github.com/rails/rails/pull/52118, so I'm restoring it.
2024-06-18 09:44:31 +02:00
..
attribute Factor out ActiveModel::AttributeRegistration 2022-03-11 22:15:14 -06:00
attribute_set Remove support to Marshal load Rails 5.x ActiveModel::AttributeSet format 2021-11-17 21:51:32 +00:00
locale Revert typography change in user facing errors 2023-09-26 21:45:03 +00:00
serializers Use h1 for Active Model documentation titles [ci-skip] 2023-03-31 13:07:31 +02:00
type TZ offset minute has to be negated in the Western Hemisphere 2024-01-17 17:25:37 +09:00
validations Replace usage of Array#? with Array#intersect? for efficiency 2024-01-05 15:15:30 -05:00
access.rb Add ActiveModel::Access 2022-02-24 13:52:21 -06:00
api.rb Fix linking on ActiveModel::API 2023-05-29 12:40:48 +09:00
attribute_assignment.rb Remove respond_to? in assign_attribute happy path 2023-10-29 14:16:03 -04:00
attribute_methods.rb Fix alias_attribute to ignore methods defined in parent classes 2024-06-18 09:44:31 +02:00
attribute_mutation_tracker.rb Fixes a defect in ActiveModel::Dirty#attribute_changed? where the :from 2022-08-05 11:52:20 -04:00
attribute_registration.rb Ensure type_for_attribute method docs are visible [ci-skip] 2024-01-06 18:07:26 -06:00
attribute_set.rb Make ==(other) method of AttributeSet safe 2023-10-19 09:08:52 +02:00
attribute.rb Cleanup defined? usage 2024-01-05 15:05:35 +01:00
attributes.rb Fix a performance regression in attribute methods 2024-06-13 17:50:11 +02:00
callbacks.rb Tiny update to callbacks docs [ci skip] 2024-02-02 12:11:30 +01:00
conversion.rb Merge pull request #49065 from RuhmUndAnsehen/fix-_to_partial_path-model_name 2023-09-01 16:41:47 -04:00
deprecator.rb Add ActiveModel.deprecator 2022-11-01 17:39:39 -05:00
dirty.rb Fix Dirty#*_was documentation 2023-11-22 14:24:57 -05:00
error.rb Make sure nested base errors are translatable 2023-08-04 19:55:57 +00:00
errors.rb Document delegated methods in ActiveModel::Errors 2023-11-29 06:38:14 +01:00
forbidden_attributes_protection.rb Fix more missing Active Model documentation headers [ci-skip] 2023-04-01 15:46:04 +02:00
gem_version.rb Development of Rails 8.0 starts now 2024-05-13 16:45:20 +00:00
lint.rb Replace all occurrences of '<tt>(\w+::\w+::\w+)</tt>' with '+$1+' 2023-05-25 06:56:17 +09:00
model.rb Add examples to #slice and #values_at documentation [ci-skip] (#50679) 2024-01-12 11:58:23 +01:00
naming.rb Fix header level for ActiveModel::Naming and DelegatedType 2023-04-22 11:25:27 +02:00
nested_error.rb Document on ActiveModel::Errors changes 2020-01-14 23:55:09 +08:00
railtie.rb Initialize deprecators before configuring them 2022-11-28 10:47:26 +01:00
secure_password.rb Use double quotes more consistenly in doc and error messages 2023-10-28 11:38:49 +02:00
serialization.rb Replace all occurrences of '<tt>(\w+::\w+)</tt>' with '+$1+' 2023-05-25 06:52:32 +09:00
translation.rb 🔗 Remove RDoc auto-link from Rails module everywhere 2023-06-23 10:49:30 +09:00
type.rb Avoid double type cast when serializing attributes 2022-09-29 11:34:29 -05:00
validations.rb Revert typography change in user facing errors 2023-09-26 21:45:03 +00:00
validator.rb Fix more missing Active Model documentation headers [ci-skip] 2023-04-01 15:46:04 +02:00
version.rb Replace all occurrences of '<tt>(\w+::\w+)</tt>' with '+$1+' 2023-05-25 06:52:32 +09:00