
uninitialized constant ActiveSupport::Memoizable (NameError)
Reported by RNHurt | February 5th, 2009 @ 06:39 PM
It looks like Prawnto is using some edge functionality (Memoizable) that can be optional. I am developing on Debian and that means being stuck with an older version of Rails (v2.1.x) which apparently lacks the Memoizable module. As far as I can tell this is just for optimization and if its missing it doesn't really affect the operation of Prawnto.
In order to get Prawnto up and running in my setup I simply commented out the 3 lines in prawnto/template_handler/compile_support.rb that mention Memoizable. It seemed to work OK but I don't know about any long term effects.
Now, I have two questions about this setup. * Firstly, are my assumptions correct about the purpose behind Memoizable? Is it required or optional? * Second, does my "fix" work? * Finally, can we use a Begin ... End block to only enable this functionality if the user has Memoizable installed? Being a newbie Ruby/Rails guy I can only fall back on my Java experience and suggest a try/catch block. :)
Thanx! Richard
Comments and changes to this ticket
-
Jeff Judge February 14th, 2009 @ 06:34 PM
+1 - I just ran into the same issue w/2.1. I commented 3 lines in compile_support.rb.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป