Skip to content

Commit

Permalink
Merge pull request #466 from aw/fix-to-ary-error
Browse files Browse the repository at this point in the history
Implement to_ary to avoid calls to method_missing
  • Loading branch information
dblock committed Sep 4, 2013
2 parents c482790 + ec5389c commit 937a397
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/grape/route.rb
Expand Up @@ -18,6 +18,11 @@ def method_missing(method_id, *arguments)
def to_s
"version=#{route_version}, method=#{route_method}, path=#{route_path}"
end


private
def to_ary
nil
end

end
end

0 comments on commit 937a397

Please sign in to comment.