lib/frenchy/model.rb in frenchy-0.0.7 vs lib/frenchy/model.rb in frenchy-0.0.8

- old
+ new

@@ -29,12 +29,12 @@ def inspect "<#{self.class.name} #{attributes.map {|k,v| "#{k}: #{v.inspect}"}.join(", ")}>" end # Decorate the model using a decorator inferred by the class - def decorate + def decorate(options={}) decorator_class = "#{self.class.name}Decorator".constantize - decorator_class.decorate(self) + decorator_class.decorate(self, options) end protected def set(name, value, options={})