karmi/tire — pull request #383 by cwalsh (2012-06-19 11:37:49+00:00)
Title: Adds support for classes that don't respond to :new, e.g. Integer

For example, with the below class, the Integer conversion now works. Before it would try to call Integer.new('4'), now it tries to call Integer('4').

class PersistentArticleWithCastedNumber
include Tire::Model::Persistence

property :title
property :count, :class => Integer
property :stats
end