lib/fin/models/model.rb in fin-0.1.3 vs lib/fin/models/model.rb in fin-0.1.4
- old
+ new
@@ -102,10 +102,10 @@
opts.each { |name, value| send "#{name}=", value }
end
def each
if block_given?
- self.class.attribute_types.each { |name, _| yield name, send(name) }
+ self.class.attribute_types.each { |name, _| yield [name, send(name)] }
else
self.class.attribute_types.map { |name, _| [name, send(name)].to_enum }
end
end