1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Ryuta Kamizono 75c309c7ad Add back decorate_attribute_type
Originally #39882 is intended to remove `decorate_matching_attribute_type`
but leave `decorate_attribute_type` at that point, but in the
disscussion in #39882, to demonstrate removing `AttributeDecorators`
module, I've removed all decoration methods.

I wrote user-defined type decoration as inline, I wasn't sure that is
valid (meaningful) usage (that is a reason why I wasn't in a hurry to
remove that method), as I said at https://github.com/rails/rails/pull/39882#discussion_r457750898.

In #39897 and #39902, `enum` also need to support user-defined type
decoration, so I've decided to add back `decorate_attribute_type` as
before #39882.
2020-07-27 14:16:56 +09:00
..
associations Use arel_table directly instead of newly created table 2020-07-23 21:18:16 +09:00
attribute_methods Add back decorate_attribute_type 2020-07-27 14:16:56 +09:00
coders Update rubocop-performance gem and enable Performance/DeletePrefix and Performance/DeleteSuffix cops 2020-05-24 12:51:35 +03:00
connection_adapters Backward compatibility to work Marshal.load(legacy_record.dump) for MySQL 2020-06-30 23:22:44 +09:00
database_configurations Address to false negative for Performance/DeletePrefix,DeleteSuffix 2020-06-14 13:04:47 +09:00
fixture_set Use join_foreign_key rather than self constructed key name 2020-07-03 18:58:44 +09:00
locale
locking Avoid double time zone converter decoration when user-defined timestamp attribute with implicit type 2020-07-20 19:56:01 +09:00
middleware Make AR::Middleware::DatabaseSelector loadable without full core ext 2020-06-09 19:43:50 +09:00
migration Add basic support for check constraints to database migrations 2020-06-02 22:11:27 -07:00
railties Remove assumption that a primary config exists 2020-06-04 15:08:59 -04:00
relation Always use faster HomogeneousIn in array handler 2020-07-25 17:59:57 +09:00
scoping Avoid confliting Kernel-named scopes on Relation 2020-05-12 11:10:39 -07:00
tasks
type
type_caster Use Arel::Table#type_for_attribute 2020-06-03 06:30:22 +09:00
validations Allow attribute aliases for validates_uniqueness_of 2020-06-01 22:44:39 +09:00
advisory_lock_base.rb
aggregations.rb
association_relation.rb
associations.rb Whitespaces 2020-05-20 12:50:44 -04:00
attribute_assignment.rb
attribute_methods.rb Merge pull request #39621 from kamipo/restore_alias_resolution 2020-06-14 14:00:01 +09:00
attributes.rb Add back decorate_attribute_type 2020-07-27 14:16:56 +09:00
autosave_association.rb Ensure column names on reflection as a string 2020-06-03 01:48:24 +09:00
base.rb Remove internal attribute decoration code 2020-07-20 13:26:25 +09:00
callbacks.rb
connection_adapters.rb Add basic support for check constraints to database migrations 2020-06-02 22:11:27 -07:00
connection_handling.rb
core.rb Deprecate arel_attribute internal API which is no longer used 2020-07-23 12:58:18 +09:00
counter_cache.rb
database_configurations.rb
delegated_type.rb Fix typo s/delegates/delegate/ [ci skip] 2020-07-10 16:01:15 +09:00
dynamic_matchers.rb
enum.rb Add back decorate_attribute_type 2020-07-27 14:16:56 +09:00
errors.rb
explain.rb Should not substitute binds when prepared_statements: true 2020-05-10 21:59:27 +09:00
explain_registry.rb
explain_subscriber.rb
fixtures.rb
gem_version.rb
inheritance.rb Move Arel attribute normalization into arel_table 2020-07-19 23:41:24 +09:00
insert_all.rb Fix issue with expression index in insert_all 2020-06-03 10:10:01 -04:00
integration.rb has_attribute? should be aware of attribute aliases 2020-06-03 00:59:35 +09:00
internal_metadata.rb
legacy_yaml_adapter.rb Deprecate YAML loading from legacy format older than Rails 5.0 2020-06-15 15:03:45 +09:00
log_subscriber.rb
migration.rb Remove invalid autoloads in top-level Rails modules 2020-06-08 17:21:26 -04:00
model_schema.rb Add a setting to specify that all string columns should be immutable 2020-06-11 15:07:06 +09:00
nested_attributes.rb
no_touching.rb
null_relation.rb
persistence.rb Remove redundant column_name.to_s 2020-07-25 15:29:06 +09:00
query_cache.rb
querying.rb Support relation.and for intersection as Set theory 2020-06-07 11:25:51 +09:00
railtie.rb Fix schema cache load and corresponding test 2020-06-04 15:12:12 -04:00
readonly_attributes.rb
reflection.rb Use arel_table directly instead of newly created table 2020-07-23 21:18:16 +09:00
relation.rb Deprecate arel_attribute internal API which is no longer used 2020-07-23 12:58:18 +09:00
result.rb Deprecate map! and collect! on ActiveRecord::Result 2020-06-10 16:51:09 +09:00
runtime_registry.rb
sanitization.rb Extract id_for_database in the AR object 2020-05-31 09:13:29 +09:00
schema.rb
schema_dumper.rb Add basic support for check constraints to database migrations 2020-06-02 22:11:27 -07:00
schema_migration.rb
scoping.rb
secure_token.rb
serialization.rb has_attribute? should be aware of attribute aliases 2020-06-03 00:59:35 +09:00
signed_id.rb Make signed_id_verifier_secret lazily evaluated 2020-05-28 19:00:41 +01:00
statement_cache.rb Fix CI failure when prepared_statements: false 2020-06-25 02:12:35 +09:00
store.rb
suppressor.rb
table_metadata.rb Deprecate arel_attribute internal API which is no longer used 2020-07-23 12:58:18 +09:00
test_databases.rb
test_fixtures.rb Fix #39205 ReadOnlyError when on writing connection 2020-05-13 11:23:52 -04:00
timestamp.rb Restore attribute alias resolution for attribute_{for_inspect,present?} 2020-06-14 10:34:38 +09:00
touch_later.rb Ensure alias resolved before clear_attribute_changes 2020-06-04 12:02:28 +09:00
transactions.rb Remove sync_with_transaction_state to simplify code base 2020-05-17 20:57:32 +09:00
translation.rb
type.rb Add a setting to specify that all string columns should be immutable 2020-06-11 15:07:06 +09:00
type_caster.rb
validations.rb
version.rb