aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_assignment.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-05-28 16:26:49 -0600
committerSean Griffin <sean@thoughtbot.com>2015-05-28 16:26:49 -0600
commita6e3cdae0ce1d05a6b9f7dff4499f6be3fbf63c2 (patch)
treef9b27900741eaf94b2e09b8a156e5475edd127e3 /activerecord/lib/active_record/attribute_assignment.rb
parent73aab036eeeb297dc85dc812f54e26aa943f48f7 (diff)
downloadrails-a6e3cdae0ce1d05a6b9f7dff4499f6be3fbf63c2.tar.gz
rails-a6e3cdae0ce1d05a6b9f7dff4499f6be3fbf63c2.tar.bz2
rails-a6e3cdae0ce1d05a6b9f7dff4499f6be3fbf63c2.zip
Allow proc defaults with the Attributes API
This is a variant implementation of the changes proposed in #19914. Unlike that PR, the change in behavior is isolated in its own class. This is to prevent wonky behavior if a Proc is assigned outside of the default, and it is a natural place to place the behavior required by #19921 as well. Close #19914. [Sean Griffin & Kir Shatrov]
Diffstat (limited to 'activerecord/lib/active_record/attribute_assignment.rb')
0 files changed, 0 insertions, 0 deletions