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

Rails 5 Support #24

Merged
merged 3 commits into from Jul 25, 2017
Merged

Rails 5 Support #24

merged 3 commits into from Jul 25, 2017

Conversation

jspooner
Copy link
Contributor

@jspooner jspooner commented Nov 3, 2016

Changes

When the class_eval methods were not wrapped in an on_load block I was getting strange results where my helpers in the including project were wiped out. I noticed all Railsies in the Rails project has this on_load block.
a) class_eval needed to be wrapped in a ActiveSupport.on_load(:action_controller) block
b) ActionView::Base class_eval was clobbering existing controller helpers when not wrapped in a ActiveSupport.on_load(:action_view) block

If the rails version has ::ActionController::API we also add the helper methods there also.

Rails 5 has a new view on including helpers in controllers. We now call helper vs include
rails/rails#24866

jspooner and others added 3 commits October 27, 2016 09:10
1. class_eval needed to be wrapped in a ActiveSupport.on_load(:action_controller) block
2. If the rails version has ::ActionController::API we also add the helper methods there also.
3. ActionView::Base class_eval was clobbering existing controller helpers when not wrapped in a ActiveSupport.on_load(:action_view) block
@jspooner
Copy link
Contributor Author

jspooner commented Nov 3, 2016

@hassox I can see there hasn't been any activity on this gem for sometime but our company still uses this gem. If you don't have the time to maintain it we would be happy to take over. Thanks!

@jspooner
Copy link
Contributor Author

jspooner commented Nov 7, 2016

@hassox any thoughts on letting us manage this gem?

@hassox
Copy link
Collaborator

hassox commented Jun 27, 2017

@jspooner I would love you to :)

I'm finding my time really split lately and the load off my mind would be great :)

@hassox
Copy link
Collaborator

hassox commented Jun 27, 2017

@whithub thoughts on maintaining too? I know you're mostly maintaining warden now and it'd be nice to keep them together

@jsmestad jsmestad merged commit a08c1f3 into wardencommunity:master Jul 25, 2017
@jspooner
Copy link
Contributor Author

jspooner commented Feb 3, 2018

@hassox , @whithub can we do a push to rubygems.org?

@whithub
Copy link

whithub commented Feb 19, 2018

@hassox Do you mind giving me rubygems permissions?

@jsmestad
Copy link
Collaborator

jsmestad commented Feb 27, 2018

@jspooner 0.6.0 is going out now released

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.

None yet

5 participants