lib/rasti/db/model.rb in rasti-db-0.4.1 vs lib/rasti/db/model.rb in rasti-db-1.0.0
- old
+ new
@@ -100,15 +100,11 @@
private
attr_reader :attributes
def fetch_attribute(name)
- attributes.key?(name) ? casted_attribute(name) : raise(UninitializedAttributeError, name)
+ attributes.key?(name) ? Rasti::DB.from_db(attributes[name]) : raise(UninitializedAttributeError, name)
end
- def casted_attribute(name)
- attributes[name].is_a?(Time) ? Timing::TimeInZone.new(attributes[name]) : attributes[name]
- end
-
end
end
end
\ No newline at end of file