Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

please use Ruby, not ActiveSupport

  • Loading branch information...
commit e533855383ea187d8a157d49afc438f893c4b8ae 1 parent c8a7066
Aaron Patterson tenderlove authored
2  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
View
@@ -381,7 +381,7 @@ def last_inserted_id(result)
end
def binds_from_relation(relation, binds)
- if relation.is_a?(Relation) && binds.blank?
+ if relation.is_a?(Relation) && binds.empty?
Jeremy Kemper Owner
jeremy added a note
[*Array.wrap(*binds)].flatten.presence.blank?.to_s.inquiry.true?

Can't be too sure :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
relation, binds = relation.arel, relation.bind_values
end
[relation, binds]
Jeremy Kemper
[*Array.wrap(*binds)].flatten.presence.blank?.to_s.inquiry.true?

Can't be too sure :shipit:

Please sign in to comment.
Something went wrong with that request. Please try again.