Skip to content

Commit

Permalink
{} -> do/end
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed May 6, 2018
1 parent 3dfa2e2 commit ea3ba3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mobility/plugins/active_record/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def build_maps!(mods, opts, invert:, locale:)
build_predicate(mod, key, locale, opts.delete(key), invert: invert)
end

->(rel) {
->(rel) do
mod.backend_class.
add_translations(rel, mod_opts, locale: locale, invert: invert, **mod.options).
where(predicates.inject(&:and))
}
end
}.compact
end

Expand Down

0 comments on commit ea3ba3f

Please sign in to comment.