diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-05 13:21:48 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-05 13:21:48 -0600 |
commit | 6470e47d6ac031283407189a92a9081ebf2a094f (patch) | |
tree | 06e2913b6d6c06c6d4aac1e7607b76dc3dfdee21 /activerecord | |
parent | da19e0d13298bc31051e9c67b5eda206413ae0dc (diff) | |
download | rails-6470e47d6ac031283407189a92a9081ebf2a094f.tar.gz rails-6470e47d6ac031283407189a92a9081ebf2a094f.tar.bz2 rails-6470e47d6ac031283407189a92a9081ebf2a094f.zip |
Remove optimization that was required with whiny nils
Whiny nils is no longer a thing, so we no longer need this optimization
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 0f20d52879..283ca81f94 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -503,14 +503,6 @@ module ActiveRecord # Extracts the value from a PostgreSQL column default definition. def extract_value_from_default(oid, default) # :nodoc: - # This is a performance optimization for Ruby 1.9.2 in development. - # If the value is nil, we return nil straight away without checking - # the regular expressions. If we check each regular expression, - # Regexp#=== will call NilClass#to_str, which will trigger - # method_missing (defined by whiny nil in ActiveSupport) which - # makes this method very very slow. - return default unless default - case default # Quoted types when /\A[\(B]?'(.*)'::/m |