lib/reviewed/base.rb in reviewed-0.1.27 vs lib/reviewed/base.rb in reviewed-0.1.28

- old
+ new

@@ -21,11 +21,12 @@ def association_name self.name.demodulize.downcase.pluralize end end - def initialize(data) - self.attributes = objectify(data) + def respond_to?(sym, include_private=false) + return true if super + @attributes.has_key?(sym) end def method_missing(sym, *args, &block) if @attributes.has_key?(sym) @attributes[sym]