diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-08-31 10:06:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 10:06:43 -0400 |
commit | c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7 (patch) | |
tree | 1038264f2d2f490460f59df0843d13bf02319786 /activerecord/lib/active_record/relation/query_methods.rb | |
parent | caa178c178468f7adcc5f4c597280e6362d9e175 (diff) | |
parent | 402852fc6d3222a283b65d407ffec3161946db71 (diff) | |
download | rails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.tar.gz rails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.tar.bz2 rails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.zip |
Merge pull request #26282 from kamipo/add_type_default_value
Add `Type.default_value` and use it everywhere for internal
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index bd41653df0..5a31f61d6d 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -80,14 +80,14 @@ module ActiveRecord limit_bind = Attribute.with_cast_value( "LIMIT".freeze, connection.sanitize_limit(limit_value), - Type::Value.new, + Type.default_value, ) end if offset_value offset_bind = Attribute.with_cast_value( "OFFSET".freeze, offset_value.to_i, - Type::Value.new, + Type.default_value, ) end connection.combine_bind_parameters( |