lib/fin/models/model.rb in fin-0.1.2 vs lib/fin/models/model.rb in fin-0.1.3
- old
+ new
@@ -5,11 +5,11 @@
class Model
include Enumerable
def self.attribute_types
- @attribute_types ||= superclass.attribute_types.dup rescue {}
+ @attribute_types ||= (superclass.attribute_types.dup rescue {})
end
def self.model_class_id value = nil
if value
@model_class_id ||= value
@@ -18,10 +18,10 @@
@model_class_id
end
end
def self.model_classes
- @model_classes ||= superclass.model_classes rescue {} #shared list for all subclasses
+ @model_classes ||= (superclass.model_classes rescue {}) #shared list for all subclasses
end
def self.property prop_hash
prop_hash.each do |arg, type|
aliases = [arg].flatten