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

explicitly register helper, fixes #147 #148

Merged
merged 2 commits into from
Apr 14, 2015

Conversation

jesenko
Copy link
Contributor

@jesenko jesenko commented Apr 9, 2015

I haven't found official documentation on how to include helper to all controllers from Rails engine - this is analogous to what I found in some other github projects...

@rondale-sc
Copy link
Collaborator

/cc @rwz


initializer "ember-cli-rails.helpers" do
config.to_prepare do
ActionController::Base.send :helper, EmberRailsHelper
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like helper is not a private method, so you don't need send here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, I have just committed a fix...

rwz added a commit that referenced this pull request Apr 14, 2015
explicitly register helper, fixes #147
@rwz rwz merged commit 8cc52b3 into tricknotes:master Apr 14, 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.

3 participants