olivernn/poirot — pull request #17 by shawndrost (2012-02-01 23:33:49+00:00)
Title: bugfix: correct usage of instance_variable code to reveal helper methods

At least in 1.9.2, instance_variable_get returns nil if there is no such instance variable, and defined?(nil) is truthy. This was preventing the "else" path from ever running and obscuring my normal rails helper methods.