ruby-grape / grape

An opinionated framework for creating REST-like APIs in Ruby.

Home Page:http://www.ruby-grape.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix `params` warning method redefined

ericproulx opened this issue · comments

I activated warnings in rspec and I found this

/var/grape/lib/grape/router/route.rb:39: warning: method redefined; discarding old params
/usr/local/lib/ruby/3.3.0/forwardable.rb:231: warning: previous definition of params was here
/var/grape/lib/grape/router/greedy_route.rb:26: warning: method redefined; discarding old params
/usr/local/lib/ruby/3.3.0/forwardable.rb:231: warning: previous definition of params was here

I think we should activate warnings in rspec.