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
Rafael Mendonça França b584cc68fc Use _read_attribute(primary_key) instead of id
This will avoid the indirection of having calling id since we already
know which is the primary key column.

Also this will make explicit the behavior since it is not clear that id
gets the right primary key value and not just the value of the "id"
column.
2015-04-19 17:14:08 -04:00
..
associations Autosave existing records on HMT associations when the parent is new 2015-04-18 10:47:04 -04:00
attribute_methods type_cast_from_user -> cast 2015-02-17 13:39:42 -07:00
attribute_set Maintain a consistent order in ActiveRecord::Base#attributes 2015-02-10 08:21:46 -07:00
coders Provide a better error message for unsupported classes in serialize 2014-12-27 19:49:09 -07:00
connection_adapters Document that partial indexes are only supported by Postgres and SQLite. 2015-04-13 09:33:48 +02:00
fixture_set
locale Move required error message and changelog to Active Record 2015-02-01 10:31:54 -02:00
locking Update old link in pessimistic.rb comments 2015-03-18 16:41:37 +08:00
migration
railties Don't invoke sql_runtime if logger is not set to info 2015-04-04 09:21:18 -04:00
relation Revert "Merge pull request #19755 from yuki24/activerecord/support-for-set" 2015-04-15 09:10:00 +02:00
scoping Fix eager loading association using default_scope for finder methods. 2015-03-31 22:54:42 +05:30
serializers Remove most type related predicates from Column 2015-01-30 11:42:54 -07:00
tasks Avoid loading user's psqlrc when loading test structure 2015-03-25 09:21:16 +10:00
type Reduce memory usage when loading types in PG 2015-03-29 13:54:39 -06:00
type_caster type_cast_for_database -> serialize 2015-02-17 13:35:23 -07:00
validations Missing note on validates_presence_of validation [ci skip] 2015-04-11 23:24:36 +03:00
aggregations.rb Do not test, document or use a private API method 2015-02-20 17:50:20 -02:00
association_relation.rb Properly create through records when called with where 2015-02-26 12:42:55 -07:00
associations.rb Apply edits from @senny to close #19397 [ci skip] 2015-04-12 18:17:31 -07:00
attribute.rb type_cast_from_user -> cast 2015-02-17 13:39:42 -07:00
attribute_assignment.rb Follow-up to #10776 2015-02-26 15:40:03 +01:00
attribute_decorators.rb Attribute assignment and type casting has nothing to do with columns 2015-01-31 19:42:38 -07:00
attribute_methods.rb Attribute assignment and type casting has nothing to do with columns 2015-01-31 19:42:38 -07:00
attribute_set.rb Significantly improve the performance of _read_attribute on JRuby 2015-02-06 12:10:47 -07:00
attributes.rb Some documentation edits [ci skip] 2015-03-05 14:18:09 +01:00
autosave_association.rb Always perform validations on nested attribute associations 2015-01-30 07:27:20 -07:00
base.rb Merge pull request #19787 from Senjai/patch-2 2015-04-18 13:03:51 +02:00
callbacks.rb Revert "Reduce allocations when running AR callbacks." 2015-03-22 11:21:02 +08:00
connection_handling.rb Revert "Merge pull request #19404 from dmathieu/remove_rack_env" 2015-03-20 08:14:11 -07:00
core.rb Merge pull request #19448 from tgxworld/fix_activesupport_callbacks_clash_on_run 2015-04-06 18:58:19 -03:00
counter_cache.rb Improve consistency of counter caches updating in memory 2015-01-26 12:37:29 -07:00
dynamic_matchers.rb Remove support to activerecord-deprecated_finders 2015-01-02 12:06:24 -03:00
enum.rb type_cast_from_user -> cast 2015-02-17 13:39:42 -07:00
errors.rb Follow-up to #10776 2015-02-26 15:40:03 +01:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Closes rails/rails#18864: Renaming transactional fixtures to transactional tests 2015-03-16 11:35:44 -07:00
gem_version.rb
inheritance.rb Revert "Merge pull request #19500 from ccutrer/dry_sti_subclass_finding" 2015-03-24 14:12:24 -03:00
integration.rb
legacy_yaml_adapter.rb Add YAML compatibility for objects from Rails 4.2 2015-03-10 11:56:45 -06:00
log_subscriber.rb Don't invoke sql_runtime if logger is not set to info 2015-04-04 09:21:18 -04:00
migration.rb Fix typo [ci skip] 2015-02-23 13:32:54 -05:00
model_schema.rb remove duplicates 2015-04-03 00:00:30 +02:00
nested_attributes.rb type_cast_from_user -> cast 2015-02-17 13:39:42 -07:00
no_touching.rb Add nodoc to touch at no_touching.rb 2014-12-29 14:14:46 -03:00
null_relation.rb Fix NullRelation.update_all and .exists? signature to match the same on Relation 2015-03-18 00:46:09 -07:00
persistence.rb Use _read_attribute(primary_key) instead of id 2015-04-19 17:14:08 -04:00
query_cache.rb
querying.rb Added #or to ActiveRecord::Relation 2015-01-28 13:35:55 -07:00
railtie.rb Add config.active_record.warn_on_records_fetched_greater_than option 2015-03-25 16:50:11 -04:00
readonly_attributes.rb
reflection.rb Add clear_association_scope_cache method 2015-03-18 08:13:53 -04:00
relation.rb Fix documentation for find_or_create_by 2015-03-21 01:16:13 -07:00
result.rb Type#type_cast_from_database -> Type#deserialize 2015-02-17 13:28:48 -07:00
runtime_registry.rb
sanitization.rb type_cast_for_database -> serialize 2015-02-17 13:35:23 -07:00
schema.rb
schema_dumper.rb Add :charset and :collation options support for MySQL string and text columns 2015-03-06 18:56:19 +09:00
schema_migration.rb
scoping.rb Isolate access to .default_scopes in ActiveRecord::Scoping::Default 2015-03-12 01:22:39 -07:00
secure_token.rb Fix #has_secure_token documentation [ci skip] 2015-02-20 18:52:02 -06:00
serialization.rb
statement_cache.rb Remove Relation#bind_params 2015-01-27 16:10:03 -07:00
store.rb Fix type case of "validations" and word-wrap from #17954 [ci skip] 2014-12-08 08:36:04 -08:00
suppressor.rb Return true instead of self when suppressed 2015-02-19 09:25:20 -02:00
table_metadata.rb Respect custom primary keys for associations in Relation#where 2015-02-04 08:56:46 -07:00
timestamp.rb Fix warning: `*' interpreted as argument prefix 2014-12-28 16:05:53 +09:00
touch_later.rb Batch touch parent records 2015-04-08 13:31:28 -04:00
transactions.rb Revert "Reduce allocations when running AR callbacks." 2015-03-22 11:21:02 +08:00
translation.rb
type.rb Add docs for the type registry 2015-02-17 14:17:59 -07:00
type_caster.rb Extract an explicit type caster class 2014-12-29 11:07:56 -07:00
validations.rb Move the validate! method to ActiveModel::Validations. 2015-02-20 16:05:26 -02:00
version.rb