lib/alchemy/resources_helper.rb in alchemy_cms-2.2.rc13 vs lib/alchemy/resources_helper.rb in alchemy_cms-2.2.rc14

- old
+ new

@@ -50,7 +50,15 @@ end def resource_model resource_handler.model end + + def render_attribute(obj, attribute) + attr_array = attribute.split('.') + attr_array.each do |attr| + obj = obj.send(attr) if obj + end + obj + end end end \ No newline at end of file