On 13 Nov 2008, at 10:22, Francis Fish wrote: > Go to the offending line (11) in the plugin code (as per the error > message) and change it to > > if options.nil? or ( not options.is_a? Hash ) or > options[:pdf].nil? > > This stops it assuming that the options is necessarily a Hash and > getting upset. Probably a more elegant solution out there in Ruby > land but it works for me. >
Because I'm on holiday: > if !options.is_a?(Hash) || options[:pdf].nil? With test case here (rspec): http://pastie.textmate.org/313773 C --- Caius Durling [EMAIL PROTECTED] +44 (0) 7960 268 100 http://caius.name/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en -~----------~----~----~----~------~----~------~--~---
