mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 04:20:15 +01:00
fix failing tests
Includes a monkey patch for Arel that may need to be removed when 4.0.0 final ships
This commit is contained in:
parent
80974fb0d5
commit
08498fee4f
10 changed files with 50 additions and 43 deletions
15
config/initializers/monkey_patch_arel.rb
Normal file
15
config/initializers/monkey_patch_arel.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue