lib/builder/mongo_helpers.rb in sinatra_resource-0.4.2 vs lib/builder/mongo_helpers.rb in sinatra_resource-0.4.3
- old
+ new
@@ -408,19 +408,9 @@
end
# Note: This has O^2 complexity because of the nesting.
# Can it be done more quickly?
end
- # Returns a typecasted +value+. (Uses +model+ and +key_string+ to
- # figure out how to typecast it.)
- #
- # @return [Object]
- def typecast(model, key_string, value)
- dummy = model.new
- dummy.send(:"#{key_string}=", value)
- dummy.send(:"#{key_string}")
- end
-
end
end
end