#2 new
RNHurt

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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages