RailsCasts Pro episodes are now free!

Learn more or hide this

Sven Pachnit's Profile

GitHub User: 2called-chaos

Site: https://coderwall.com/2called-chaos

Comments by Sven Pachnit

Avatar

Sidequestion: Is it better to load modules into my models? I currently use abstract models for most things (which, however, loads modules itself). But I runned into problems as the self.abstract_class = true gotcha seems to be not widely known...

Avatar

And I finally found a solution for it. Not a solution, THE solution :-)

You'll have to require your dependencies in the gem's initialization file and then it will work like a charm. I think Ryan would say "Yay" ;-)

Example as image

Avatar

Did you solved the issue? I've got the same problem (jquery, bootstrap) and the solution or "fix" presented in your linked thread isn't that satisfactory, is it?