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

After action callback :intercom_rails_auto_include has not been defined #235

Closed
attenzione opened this issue Oct 3, 2016 · 4 comments
Closed

Comments

@attenzione
Copy link

attenzione commented Oct 3, 2016

I'm using this method to disable intercom for some controller, but for staging environment i completely disabled it in config. Seems this issue not related to disabling it for specific environment, as I investigated source code, this method should exist anyway. I think it's Rails 5
With Rails 4 there is no issue.

Version info

  • intercom-rails version: 0.3.2
  • Rails version: 5.0.0.1

Logs

After process_action callback :intercom_rails_auto_include has not been defined (ArgumentError)

@nburns
Copy link

nburns commented Feb 8, 2017

Also having this same problem, any word on a fix?

@attenzione
Copy link
Author

add raise: false to skip_after_action

@nburns
Copy link

nburns commented Feb 9, 2017

Setting config.enable_dependency_loading = true in config/application.rb fixed the issue for me.
http://blog.bigbinary.com/2016/08/29/rails-5-disables-autoloading-after-booting-the-app-in-production.html

@kant01ne
Copy link
Contributor

Seems to be related to rails 5 disabling autoloading in production as mentioned by @nburns. I'll close this one as I don't think there is much we can do in intercom-rails gem. Let us know if you still have this issue.

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

No branches or pull requests

3 participants