aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/singular_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-181-2/+0
* Reuse AR::Association#find_target methodBogdan Gusiev2018-12-271-13/+1
* Revert "Merge pull request #34538 from bogdan/reuse-find-target"Ryuta Kamizono2018-11-281-6/+13
* Reuse code in AR::Association#find_targetBogdan Gusiev2018-11-271-13/+6
* Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-1/+1
* Initialization block is a part of `build_record`Ryuta Kamizono2018-06-041-6/+4
* Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-011-4/+0
* Passing `klass` to `StatementCache.new`Ryuta Kamizono2017-08-041-6/+4
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Don't cache `scope_for_create`Ryuta Kamizono2017-07-161-1/+1
* Fix `create_with` using both string and symbolRyuta Kamizono2017-07-161-3/+2
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Don't passing `klass.connection` to `AssociationScope`Ryuta Kamizono2017-06-291-1/+1
* Prevent extra `scope` construction in `find_target`Ryuta Kamizono2017-06-181-1/+2
* Raise on create for singular association when parent is unpersistedAlex Kitchens2017-06-081-0/+4
* Remove deprecated force reload argument in association readersRafael Mendonça França2016-12-291-10/+2
* Fix CI failure caused by #25227 and #25280 were merged at the same timeRyuta Kamizono2016-12-101-1/+1
* Merge pull request #25280 from kamipo/prevent_range_error_for_belongs_to_asso...Sean Griffin2016-12-101-0/+2
|\
| * Prevent `RangeError` for `belongs_to` associationsRyuta Kamizono2016-10-101-0/+2
* | Introduce `reload_<association>` reader for singular associations.Yves Senn2016-11-221-0/+7
|/
* Merge pull request #26380 from kamipo/pass_set_inverse_instance_blockKasper Timm Hansen2016-09-081-2/+2
|\
| * Pass `set_inverse_instance` block to `sc.execute` for `SingularAssociation`Ryuta Kamizono2016-09-031-2/+2
* | Extract duplicated `create` and `create!` definition for associationRyuta Kamizono2016-09-031-8/+0
|/
* Avoid duplicated `set_inverse_instance` for target scopeRyuta Kamizono2016-08-031-7/+3
* Mutating the result of Relation#to_a should not affect the relationMatthew Draper2016-02-211-1/+1
* Delete needless `require 'active_support/deprecation'`yui-knk2015-10-201-2/+0
* Skip statement cache on through association readerRafael Mendonça França2015-08-121-6/+1
* Deprecate force association reload by passing truePrem Sichanugrist2015-07-151-0/+8
* Fix `undefined method uncached` for polymorphic belongs_to #20426James Dabbs2015-06-131-1/+1
* Isolate access to .default_scopes in ActiveRecord::Scoping::DefaultBen Woosley2015-03-121-2/+1
* default scopes should break the cache on singulur_association.alfa-jpn2014-11-081-1/+2
* break cache if we're inside a "scoping" call. fixes #17052Aaron Patterson2014-10-141-1/+6
* Skip StatementCache for eager loaded associations (Fixes #16761)Sammy Larbi2014-09-041-1/+1
* use statement cache for belongs_to relationsAaron Patterson2014-04-221-1/+12
* extract record fetching to a method for belongs_toAaron Patterson2014-04-221-1/+5
* [Active Record] Renamed private methods create_record and update_recordPrathamesh Sonpatki2014-02-201-3/+3
* `has_one` and `belongs_to` accessors don't add ORDER BY to the queries anymore.Rafael Mendonça França2014-01-211-1/+1
* remove the nil check from set_inverse_instanceAaron Patterson2013-12-121-1/+3
* Remove useless comment and white spaces :scissors: [ci skip]Carlos Antonio da Silva2013-09-011-1/+0
* This is comment for singular association.kennyj2012-11-021-1/+1
* Remove mass_assignment_options from ActiveRecordGuillermo Iguaran2012-09-161-8/+8
* s/scoped/scope/Jon Leighton2012-08-011-2/+2
* Ensure that the foreign key gets set when doing record.create_association or ...Jon Leighton2011-07-081-2/+11
* Assign the association attributes to the associated record before the before_...Jon Leighton2011-06-301-2/+1
* Don't pass a block as we are yieldingAndrew White2011-05-171-1/+1
* Add block setting of attributes to singular associationsAndrew White2011-05-171-5/+6
* Pass the attribute and option hashes to build_associationAndrew White2011-05-171-6/+6
* Don't use mass-assignment protection when setting foreign keys or association...Jon Leighton2011-05-121-9/+9
* singular and collection relations in AR can now specify mass-assignment secur...Josh Kalderimis2011-05-011-8/+8