squeel icon indicating copy to clipboard operation
squeel copied to clipboard

Undefined method `alias_method_chain'

Open silambarasanmuthuvel opened this issue 6 years ago • 5 comments

Gem Load Error is: undefined method `alias_method_chain' for #Class:ActiveRecord::Associations::JoinDependency Did you mean? alias_method Backtrace for gem load error

this error arrised the after i added the gem "Squeel"

silambarasanmuthuvel avatar Mar 19 '19 05:03 silambarasanmuthuvel

I am also having this issue, after i updated to rails-5 from rails 4. alias_method_chain has been removed from rails 5 i believe.

For anyone who is looking for a alternate for this, baby-squeel looks promising. I haven't used it myself. For my scenario we rewrote all the squeel DSL we were using in ActiveRecord.

nijeesh4all avatar Sep 24 '19 05:09 nijeesh4all

Is there any solution that I can continue using this gem in my application in rails 5.2? Or any other alternate gem or fork with support of 5.2 rails version.

abubakar-bilal avatar Nov 12 '19 11:11 abubakar-bilal

I see this error after I added squeel to a Rails 5.2 project and try to start the console

Hirurg103 avatar Dec 10 '19 17:12 Hirurg103

@Hirurg103 i think this project isn't maintained anymore. We moved away from it after no response from the authors. i think you better do too.

nijeesh4all avatar Dec 19 '19 08:12 nijeesh4all

We moved away from it after no response from the authors. i think you better do too.

I think that it makes sense. Thank you @nijeesh4all

Hirurg103 avatar Dec 19 '19 10:12 Hirurg103