app/helpers/carload/dashboard_helper.rb in carload-0.2.0 vs app/helpers/carload/dashboard_helper.rb in carload-0.2.1
- old
+ new
@@ -23,10 +23,10 @@
def generate_show object, attribute
case attribute
when Symbol
object.send attribute
when String
- eval "object.#{attribute}"
+ eval "object.#{attribute.gsub('.', '&.')}"
end
end
end
end