Closed shawndrost closed 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.
Thanks, I've included this in a new release.
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.