Skip to content

Commit

Permalink
please use Ruby, not ActiveSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Apr 11, 2014
1 parent c8a7066 commit e533855
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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?

This comment has been minimized.

Copy link
@jeremy

jeremy Apr 11, 2014

Member
[*Array.wrap(*binds)].flatten.presence.blank?.to_s.inquiry.true?

Can't be too sure :shipit:

relation, binds = relation.arel, relation.bind_values
end
[relation, binds]
Expand Down

0 comments on commit e533855

Please sign in to comment.