Skip to content

Commit

Permalink
Remove call to create binds
Browse files Browse the repository at this point in the history
  • Loading branch information
craig1410 committed Feb 24, 2016
1 parent fe17b55 commit 54c18bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/cancan/model_adapters/active_record_5_adapter.rb
Expand Up @@ -46,8 +46,6 @@ def sanitize_sql(conditions)

conditions.stringify_keys!

conditions, binds = predicate_builder.create_binds(conditions)

predicate_builder.build_from_hash(conditions).map { |b|
@model_class.send(:connection).visitor.compile b
}.join(' AND ')
Expand Down

0 comments on commit 54c18bd

Please sign in to comment.