rails-dev-boost icon indicating copy to clipboard operation
rails-dev-boost copied to clipboard

Rails 5 Issue

Open tarr11 opened this issue 8 years ago • 7 comments

Receiving this error when running under rails 5:

NameError: undefined local variable or method `log_call' for ActiveSupport::Dependencies:Module

tarr11 avatar Jul 14 '16 19:07 tarr11

I haven't investigated Rails 5 support (my app is not on Rails 5 quite yet). From what I know following Rails 5 dev, there are a lot of changes to some internals relevant to rails-dev-boost and the fixes required are not trivial. I am afraid I will not be able to work on these for some months.

There is also an assumption - perhaps incorrect - on my part that most of huge Rails apps, that is the apps that benefit the most from rails-dev-boost, are not yet on Rails 5 either.

Rails 5 support is coming, but it is somewhat on the back-burner for now.

thedarkone avatar Jul 21 '16 16:07 thedarkone

I managed to get it to run by commenting out this one line:

https://github.com/mvcodeclub/rails-dev-boost/commit/4e8e99b939414d25616dc659e9d5596caf64e4f6

I have no real idea what I'm doing in that code, though, or what the replacement call should be.

tarr11 avatar Jul 22 '16 21:07 tarr11

I am seeing the same issue in rails5.

codered avatar Mar 30 '17 16:03 codered

Thats still happening? Any correction for this? Using last Rails version.

giolazzareschi avatar Jul 07 '17 01:07 giolazzareschi

I am getting following error with Rails 5.1.2

NoMethodError: undefined method `alias_method_chain' for ActiveSupport::Dependencies:Module

spurnaye avatar Jul 07 '17 14:07 spurnaye

alias_method_chain has been deprecated in Rails 5 and removed in 5.1 https://github.com/rails/rails/pull/19434 I will try to push a fix for that later this week.

https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain/

thromera avatar Aug 30 '17 09:08 thromera

https://github.com/mvcodeclub/rails-dev-boost/commit/4e8e99b939414d25616dc659e9d5596caf64e4f6

worked for me too @tarr11 thank you

abadfish avatar Feb 21 '18 22:02 abadfish