diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-05-11 22:00:37 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-05-11 22:00:37 -0400 |
commit | d1794cd88c1de2f72ba35fd5cced42bc0f7528f9 (patch) | |
tree | 0d873b9aef9e961455a47095f9679dca73e5b209 /activerecord/lib/active_record | |
parent | 50ef6ed4500686826997688a622496bec9b0992a (diff) | |
parent | 556e530da41dce5ae8070e8e075390bbedb949c0 (diff) | |
download | rails-d1794cd88c1de2f72ba35fd5cced42bc0f7528f9.tar.gz rails-d1794cd88c1de2f72ba35fd5cced42bc0f7528f9.tar.bz2 rails-d1794cd88c1de2f72ba35fd5cced42bc0f7528f9.zip |
Merge pull request #24980 from merhard/virtual-attribute-default
Define ActiveRecord::Attribute::Null#type_cast
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/attribute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute.rb b/activerecord/lib/active_record/attribute.rb index 3c4c8f10ec..24231dc9e1 100644 --- a/activerecord/lib/active_record/attribute.rb +++ b/activerecord/lib/active_record/attribute.rb @@ -170,7 +170,7 @@ module ActiveRecord super(name, nil, Type::Value.new) end - def value + def type_cast(*) nil end |