Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing methods dsl refactored to get rid of explicit paths parameter #813

Closed
wants to merge 1 commit into from

Conversation

AMar4enko
Copy link
Contributor

Fixes #791

@AMar4enko AMar4enko force-pushed the routing_dsl branch 2 times, most recently from 764c10f to 7083d32 Compare November 14, 2014 01:44
@dblock
Copy link
Member

dblock commented Nov 14, 2014

Rubocop doesn't like eval, and for good reason. Try something like this:

%w"get pust put head delete options patch".each do |method|
  define_method method do |args, &block|
   ...
  end
end

@dblock
Copy link
Member

dblock commented Nov 28, 2014

Sorry for the delay, merged via d3f0c29.

@dblock dblock closed this Nov 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Little improvement for routing when using together with RABL
2 participants