File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
lib/authlogic/acts_as_authentic/queries Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,21 @@ def comparison
4242
4343 # @api private
4444 def insensitive_comparison
45- @model_class . connection . case_insensitive_comparison (
46- @model_class . arel_table [ @field ] , @value
47- )
45+ @model_class . with_connection do |connection |
46+ connection . case_insensitive_comparison (
47+ @model_class . arel_table [ @field ] , @value
48+ )
49+ end
4850 end
4951
5052 # @api private
5153 def sensitive_comparison
5254 bound_value = @model_class . predicate_builder . build_bind_attribute ( @field , @value )
53- @model_class . connection . case_sensitive_comparison (
54- @model_class . arel_table [ @field ] , bound_value
55- )
55+ @model_class . with_connection do |connection |
56+ connection . case_sensitive_comparison (
57+ @model_class . arel_table [ @field ] , bound_value
58+ )
59+ end
5660 end
5761 end
5862 end
You can’t perform that action at this time.
0 commit comments