diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-31 19:46:26 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-31 19:46:26 -0200 |
commit | 3bdfecea8b9cd324a396782e1d44834c8dccef70 (patch) | |
tree | 7ac9dad677b5c100af604d432052a4971a1a124e /activerecord/lib | |
parent | e072f828af01ee4e613a02b8b4d0d3348eb7b902 (diff) | |
download | rails-3bdfecea8b9cd324a396782e1d44834c8dccef70.tar.gz rails-3bdfecea8b9cd324a396782e1d44834c8dccef70.tar.bz2 rails-3bdfecea8b9cd324a396782e1d44834c8dccef70.zip |
Fix typo
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb index f4aa9d215a..e09319890a 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb @@ -84,7 +84,7 @@ module ActiveRecord @subtype = subtype end - def exctract_bounds(value) + def extract_bounds(value) from, to = value[1..-2].split(',') { from: (value[1] == ',' || from == '-infinity') ? infinity(:negative => true) : from, @@ -110,7 +110,7 @@ module ActiveRecord return if value.nil? || value == 'empty' return value if value.is_a?(::Range) - extracted = exctract_bounds(value) + extracted = extract_bounds(value) case @subtype when :date |