Skip to content

Commit a8291d6

Browse files
prathamesh-sonpatkikares
authored andcommitted
Definition of case_sensitive_modifier is changed in Rails 4.2
- We are passing table_attribute now so that Arel can calculate quoted node based on that. - Commit - rails/rails@a38e957
1 parent 70ff92e commit a8291d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/arjdbc/mysql/adapter.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ def case_sensitive_modifier(node)
142142
Arel::Nodes::Bin.new(node)
143143
end
144144

145+
def case_sensitive_modifier(node, table_attribute)
146+
node = Arel::Nodes.build_quoted node, table_attribute
147+
Arel::Nodes::Bin.new(node)
148+
end if ActiveRecord::VERSION::STRING > '4.2'
149+
145150
def limited_update_conditions(where_sql, quoted_table_name, quoted_primary_key)
146151
where_sql
147152
end

0 commit comments

Comments
 (0)