Permalink
Browse files

fix wrong sql condition

  • Loading branch information...
1 parent d187c93 commit 5336bb9653a8bba145257bcdd0daf61f3087d075 @netskin-ci netskin-ci committed Sep 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/i18n_backend_sequel/translation.rb
@@ -67,7 +67,7 @@ class Translation < ::Sequel::Model(:i18n_translations)
end
namespace = "#{keys.last}#{I18n::Backend::Flatten::FLATTEN_SEPARATOR}%"
- filter(:key => keys).or(:key.like(namespace))
+ filter{({:key => keys}) | (key.like(namespace))}
end
plugin :serialization, :json, :value, :interpolations

0 comments on commit 5336bb9

Please sign in to comment.