Skip to content

Commit

Permalink
Accept any number of arguments to Arel::Visitors::Visitor#visit
Browse files Browse the repository at this point in the history
Required due to this (interal) change in Arel:

rails/rails@85b4ba28364
  • Loading branch information
shioyama committed Sep 16, 2019
1 parent 0da0bf1 commit ac01404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mobility/arel/visitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def initialize(backend_class, locale)

private

def visit(object)
def visit(*args)
super
rescue TypeError
visit_default(object)
visit_default(*args)
end

def visit_collection(_objects)
Expand Down

0 comments on commit ac01404

Please sign in to comment.