Skip to content

Commit

Permalink
Extract visit_Arel_Nodes_SelectOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
yahonda committed Jun 19, 2015
1 parent 2d19f7a commit 8d04c28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/arel/visitors/to_sql.rb
Expand Up @@ -219,11 +219,15 @@ def visit_Arel_Nodes_SelectStatement o, collector
}
end

visit_Arel_Nodes_SelectOptions(o, collector)

collector
end

def visit_Arel_Nodes_SelectOptions o, collector
collector = maybe_visit o.limit, collector
collector = maybe_visit o.offset, collector
collector = maybe_visit o.lock, collector

collector
end

def visit_Arel_Nodes_SelectCore o, collector
Expand Down

0 comments on commit 8d04c28

Please sign in to comment.