diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-23 09:48:47 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-23 09:54:06 -0600 |
commit | ae96f229f6501d8635811d6b22d75d43cdb880a4 (patch) | |
tree | 57d224d09a4617f74b3ef980cf92173806765020 /activerecord/lib/active_record/connection_adapters/column.rb | |
parent | 936fd4c1e017ec88699b3cd7daa09847da36c731 (diff) | |
download | rails-ae96f229f6501d8635811d6b22d75d43cdb880a4.tar.gz rails-ae96f229f6501d8635811d6b22d75d43cdb880a4.tar.bz2 rails-ae96f229f6501d8635811d6b22d75d43cdb880a4.zip |
Add a deprecation cycle for `NullColumn` from `column_for_attribute`
This is public API, and `simple_form` depends on the `nil` return value.
We need to go through a deprecation cycle to return a null object. If
people want hash access, they can access the hash.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index 8be4678ace..1f1e2c46f4 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -57,12 +57,6 @@ module ActiveRecord end end end - - class NullColumn < Column - def initialize(name) - super name, nil, Type::Value.new - end - end end # :startdoc: end |