tracks/config/initializers/monkey_patch_arel.rb
Reinier Balt 08498fee4f fix failing tests
Includes a monkey patch for Arel that may need to be removed when 4.0.0 final ships
2013-05-13 15:35:21 +02:00

15 lines
No EOL
319 B
Ruby

# From https://github.com/rails/arel/issues/149
# Also fixes https://github.com/rails/rails/issues/9263
module Arel
module Nodes
class SqlLiteral < String
def encode_with(coder)
coder['string'] = to_s
end
def init_with(coder)
clear << coder['string']
end
end
end
end