diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-01-05 11:09:29 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-01-05 11:09:29 +0100 |
commit | a076256d63f64d194b8f634890527a5ed2651115 (patch) | |
tree | 0cd85d4f5bb5154d16fb81d57d9daebb5440b57b /activerecord/lib/active_record | |
parent | 5cc08e1977b2904bf4ff958f5a935ae297e5ed49 (diff) | |
download | rails-a076256d63f64d194b8f634890527a5ed2651115.tar.gz rails-a076256d63f64d194b8f634890527a5ed2651115.tar.bz2 rails-a076256d63f64d194b8f634890527a5ed2651115.zip |
remove deprecated support for PG ranges with exclusive lower bounds.
addresses https://github.com/rails/rails/commit/91949e48cf41af9f3e4ffba3e5eecf9b0a08bfc3#commitcomment-9144563
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb index 961e6224c4..3adfb8b9d8 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb @@ -25,16 +25,7 @@ module ActiveRecord to = type_cast_single extracted[:to] if !infinity?(from) && extracted[:exclude_start] - if from.respond_to?(:succ) - from = from.succ - ActiveSupport::Deprecation.warn(<<-MSG.squish) - Excluding the beginning of a Range is only partialy supported - through `#succ`. This is not reliable and will be removed in - the future. - MSG - else - raise ArgumentError, "The Ruby Range object does not support excluding the beginning of a Range. (unsupported value: '#{value}')" - end + raise ArgumentError, "The Ruby Range object does not support excluding the beginning of a Range. (unsupported value: '#{value}')" end ::Range.new(from, to, extracted[:exclude_end]) end |