aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder/has_one.rb
Commit message (Expand)AuthorAgeFilesLines
* Polymorphic has_one touch: Reset association cache result after create transa...Kasper Timm Hansen2019-07-311-12/+7
* Adds touch option to has_one associationAbhay Nikam2019-04-251-2/+34
* Make association builder methods privateRyuta Kamizono2019-04-241-0/+2
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+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
* Define `:foreign_type` as a valid option in `SingularAssociation`yui-knk2016-01-191-1/+1
* docs, add missing `:nodoc: for `Associations::Builder`. [ci skip]Yves Senn2015-10-131-1/+1
* Require `belongs_to` by default.Josef Šimánek2015-02-211-0/+7
* Remove support to activerecord-deprecated_findersRafael Mendonça França2015-01-021-4/+2
* Add foreign_type option for polymorphic has_one and has_many.Ulisses Almeida + Kassio Borges2014-12-081-1/+1
* Merge pull request #12450 from iantropov/masterRafael Mendonça França2014-06-271-1/+1
|\
| * Fix bug, when ':dependent => :destroy' option violates foreign key constraint...Ivan Antropov2013-10-261-3/+3
* | Remove a long gone :order option from has_one's valid_options.thedarkone2014-06-091-1/+1
* | Revert the whole refactoring in the association builder classes.Rafael Mendonça França2013-12-111-2/+4
* | Bring back the valid_options class accessorRafael Mendonça França2013-12-111-1/+1
* | Method visibility will not make difference hereRafael Mendonça França2013-10-091-2/+0
* | Move macro to class levelRafael Mendonça França2013-10-091-1/+1
* | Make valid_options a class methodRafael Mendonça França2013-10-091-1/+1
* | add_before_destroy_callbacks doesn't depend on the instance, so push itAaron Patterson2013-10-021-1/+1
* | valid_options doesn't depend on the instance, so push it to the classAaron Patterson2013-10-021-3/+3
* | push constructable? on to the reflectionAaron Patterson2013-10-021-4/+0
|/
* push more mutations out of the builderAaron Patterson2013-08-011-4/+6
* Dropped deprecated option `:restrict` for `:dependent` in associationsNeeraj Singh2013-07-031-1/+1
* DRY up handling of dependent optionJon Leighton2012-08-101-19/+3
* Unprivatise all the thingsJon Leighton2012-08-101-14/+12
* move dependency logic out of generated methodsJon Leighton2012-08-101-11/+7
* Clean up dependent option validation.Jon Leighton2012-08-101-2/+1
* Remove the dependent_restrict_raises option.Jon Leighton2012-08-101-2/+1
* load active_support/core_ext/object/inclusion in active_support/railsXavier Noria2012-08-021-1/+0
* Refactor dependency check validationCarlos Antonio da Silva2012-08-011-6/+4
* move method for dependent option checkHrvoje Šimić2012-08-011-4/+3
* stop using class_attribute where methods/inheritance will suffice.Jon Leighton2012-07-131-11/+8
* Same method for has_many and has_one associationsPaco Guzman2012-01-311-16/+2
* Easy dependent_restrict error messagePaco Guzman2012-01-311-2/+1
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-1/+10
* avoid warningsJosh Susser2011-11-271-2/+2
* association methods are now generated in modulesJosh Susser2011-11-151-6/+5
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the sugg...David Heinemeier Hansson2011-04-121-1/+1
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+3
* Use proper objects to do the work to build the associations (adding methods, ...Jon Leighton2011-02-211-0/+61