olivernn / poirot

mustaches in your rails
http://olivernn.github.com/poirot
108 stars 21 forks source link

bugfix: correct usage of instance_variable code to reveal helper methods #17

Closed shawndrost closed 12 years ago

shawndrost commented 12 years ago

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.

olivernn commented 12 years ago

Thanks, I've included this in a new release.