lib/siteleaf/entity.rb in siteleaf-0.8.3 vs lib/siteleaf/entity.rb in siteleaf-0.9.0

- old
+ new

@@ -42,10 +42,10 @@ def attributes Hash[self.instance_variables.map { |name| [name[1..-1], self.instance_variable_get(name)] }] end def attributes=(attributes = {}) - attributes.each_pair { |k, v| k != "attributes" and self.instance_variable_set("@#{k}", v) } + attributes.each_pair { |k, v| self.instance_variable_set("@#{k}", v) } end def self.class_name self.name.split('::')[-1] end \ No newline at end of file