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
Sean Griffin 714ab8cb59 Allow symbols using "dot notation" to be passed to where
In 04ac5655be I assumed that we would
never want to pass the "table_name.column_name" form to where with a
symbol. However, in Ruby 2.2 and later, you can quote symbols using the
new hash syntax, so it's a semi-reasonable thing to do if we want to
support the dot notation (which I'd rather deprecate, but that would be
too painful of a migration).

Instead we've changed the definition of "this is a table name with a
dot" to when the value associated is a hash. It would make very little
sense to write `where("table_name.column_name": { foo: :bar })` in any
scenario (other than equality for a JSON column which we don't support
through `where` in this way).

Close #24514.
2016-04-12 10:42:28 -06:00
..
associations Allow symbols using "dot notation" to be passed to where 2016-04-12 10:42:28 -06:00
attribute Memoize user provided defaults before type casting 2016-03-24 14:58:23 -06:00
attribute_methods Fix a tip in Active Record time attributes deprecation 2016-03-24 17:41:56 +02:00
attribute_set
coders
connection_adapters Pass over all Rails 5 warnings, to make sure: 2016-04-12 02:26:56 +05:30
fixture_set provide file name for fixture ERB 2016-03-30 12:32:39 +03:00
locale
locking
migration Update compatibility.rb 2016-03-26 11:13:17 +02:00
railties issue FileUtils commands directly in Rake tasks 2016-04-11 16:55:05 +02:00
relation Allow symbols using "dot notation" to be passed to where 2016-04-12 10:42:28 -06:00
scoping Execute default_scope defined by abstract class within the scope of subclass 2016-03-08 14:56:00 +02:00
tasks Make 'migrate' clear the schema cache afterward 2016-03-24 13:17:14 -04:00
type
type_caster
validations Fix uniqueness validation with an after_create hook. 2016-02-25 10:13:12 -05:00
aggregations.rb reflect mapping to match initialize 2016-01-25 20:56:42 -08:00
association_relation.rb Mutating the result of Relation#to_a should not affect the relation 2016-02-21 03:28:18 +10:30
associations.rb [ci skip] relations inside <tt> tag 2016-03-27 19:01:27 +05:30
attribute.rb
attribute_assignment.rb Addresses #23568 2016-02-09 08:01:29 -06:00
attribute_decorators.rb
attribute_methods.rb Remove unused class AttributeMethodCache 2016-02-02 11:21:52 +05:30
attribute_mutation_tracker.rb
attribute_set.rb
attributes.rb make attributes API example to work [ci skip] 2016-03-06 09:56:41 +09:00
autosave_association.rb A small documentation fix about autosave associations [ci skip] 2016-03-05 08:02:58 +02:00
base.rb Highlight the dynamic method finder 'find_by_' [ci skip] 2016-03-26 14:07:45 +05:30
callbacks.rb Fix grammar a to an [ci skip] 2016-02-13 20:44:44 +09:00
collection_cache_key.rb Fix AR::Relation#cache_key to remove select scope added by user 2016-01-24 22:36:13 +05:30
connection_handling.rb
core.rb Pass over all Rails 5 warnings, to make sure: 2016-04-12 02:26:56 +05:30
counter_cache.rb Pluralize counter_cache column name in example [ci skip] 2016-01-20 11:58:11 +05:30
dynamic_matchers.rb
enum.rb This code won't work 2016-03-06 12:15:12 +09:00
errors.rb Merge pull request #22170 from samphilipd/sam/properly_deallocate_prepared_statements_outside_of_transaction 2016-03-02 02:23:11 +10:30
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb
gem_version.rb Prep release for Rails 5 beta3 2016-02-24 10:27:02 -05:00
inheritance.rb Defer Arel attribute lookup to the model class 2016-02-04 08:02:45 +10:30
integration.rb
internal_metadata.rb Rename active_record_internal_metadatas to ar_internal_metadata 2016-02-01 15:52:30 +00:00
legacy_yaml_adapter.rb
log_subscriber.rb Removes potentially quadratic Regexp from ActiveRecord::LogSubscriber#sql_color 2016-02-23 15:20:54 -07:00
migration.rb Cleanup message shown while running destructive action against protected database. 2016-04-10 13:36:26 +05:30
model_schema.rb Revert "Deprecate table names containing dots" 2016-03-31 15:25:59 -06:00
nested_attributes.rb Merge branch 'master' of github.com:rails/docrails 2016-03-06 06:58:36 +00:00
no_touching.rb
null_relation.rb Mutating the result of Relation#to_a should not affect the relation 2016-02-21 03:28:18 +10:30
persistence.rb Fix a small template misrender in ActiveRecord::Persistence 2016-03-02 23:32:52 +02:00
query_cache.rb Directly support stateful executor hooks 2016-04-05 06:57:01 +09:30
querying.rb Delegate some additional methods in querying.rb 2016-03-30 00:00:26 +09:00
railtie.rb Revert "Ensure config.active_record.time_zone_aware_types is always set" 2016-03-24 21:00:54 -03:00
readonly_attributes.rb
reflection.rb Pass over all Rails 5 warnings, to make sure: 2016-04-12 02:26:56 +05:30
relation.rb Pass over all Rails 5 warnings, to make sure: 2016-04-12 02:26:56 +05:30
result.rb
runtime_registry.rb
sanitization.rb Fix grammar a to an [ci skip] 2016-02-13 20:44:44 +09:00
schema.rb Use hash like syntax for InternalMetadata 2016-01-08 09:27:25 -06:00
schema_dumper.rb Merge pull request #24054 from kamipo/extract_default_primary_key 2016-03-11 12:03:57 -03:00
schema_migration.rb Avoid extra show variables in migration 2016-02-01 13:05:47 +09:00
scoping.rb Active scopes apply to child classes, though not parents/siblings 2016-01-12 05:43:58 +10:30
secure_token.rb Revert "Merge pull request #20835 from glittershark/if-and-unless-in-secure-token" 2016-01-14 21:52:03 +01:00
serialization.rb
statement_cache.rb Ensure prepared statement caching still occurs with Adequate Record 2016-02-11 08:54:58 -07:00
store.rb
suppressor.rb Ensure suppressor runs before validations 2016-02-24 14:33:22 -05:00
table_metadata.rb Defer Arel attribute lookup to the model class 2016-02-04 08:02:45 +10:30
timestamp.rb [ci skip] Add note about tsrange and timezone awareness to docs 2016-01-22 14:35:52 +03:00
touch_later.rb
transactions.rb Fix the API documentation layout of after_*_commit 2016-01-20 18:21:46 +02:00
translation.rb
type.rb chage date_time type to datetime` 2016-03-06 08:41:43 +09:00
type_caster.rb
validations.rb Fix grammar a to an [ci skip] 2016-02-13 20:44:44 +09:00
version.rb