RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: 2called-chaos
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...
self.abstract_class = true
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
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?