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

Rails4 support which plays nice even with Rails 3 #50

Merged
merged 6 commits into from
Oct 11, 2013
Merged

Rails4 support which plays nice even with Rails 3 #50

merged 6 commits into from
Oct 11, 2013

Conversation

vast
Copy link
Contributor

@vast vast commented Oct 10, 2013

@fredwu
Copy link
Owner

fredwu commented Oct 11, 2013

Wow nice work! This is great! :) 👍

@@ -36,7 +36,11 @@ module ApiTaster
before(:all) do
Rails.application.routes.draw do
resources :dummy_users do
member { map_method :patch, :update }
if ApiTaster.rails4?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since rails4? is only used once, in the test, I reckon we should use Rails.version directly instead of having it as part of ApiTaster. wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, fixed

fredwu added a commit that referenced this pull request Oct 11, 2013
Rails4 support which plays nice even with Rails 3
@fredwu fredwu merged commit 751ec78 into fredwu:master Oct 11, 2013
@fredwu
Copy link
Owner

fredwu commented Oct 11, 2013

👍 Merged, thanks!

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.

3 participants