Use Railtie to initialize active support#45
Use Railtie to initialize active support#45SebAshton wants to merge 2 commits intozweilove:masterfrom
Conversation
|
Hi @SebAshton thanks for your PR. However I'm a little unsure whether this is the right approach to solving your issue. Looking at it again I think it might make sense to stop using an isolated engine (since this gem is not creating any routes, this should not be an issue) and from what I'm reading here, then we wouldn't need any additional code to load the helpers:
http://apidock.com/rails/Rails/Engine I think that would be preferrable to the Railtie + extra initialization code. Would you mind trying that out? |
|
@jhilden since getting css_splitter into my project and working, I've moved on to another task. Will try to revisit it later on today and amend this PR. S |
|
I'm getting the same issue on a Rails 3.2 project. I'll try to send a pull request to get it fixed, but right now I just copypasta'd the helper method to my |
Using:
I was getting the following ActionController Exception:
I noticed that you were initializing in the Rails::Engine rather than a Rails::Railtie. This PR initializes css_spliter via a Railtie, which resolved my issue.
Thanks.
S