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

fix bug when using with rails5 #41

Closed
wants to merge 1 commit into from
Closed

Conversation

elfassy
Copy link
Contributor

@elfassy elfassy commented Jul 23, 2015

#40

@bwillis
Copy link
Owner

bwillis commented Jul 25, 2015

We're still supporting Rails back to v3.2, which doesn't have this yet. I'd propose adding a check like so:

if respond_to? :prepend_before_action
  prepend_before_action :set_version
else
  prepend_before_filter :set_version
end

What do you think?

@bwillis
Copy link
Owner

bwillis commented Aug 2, 2015

Closing this out since it's now in master, thanks!

@bwillis bwillis closed this Aug 2, 2015
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.

2 participants