DataMapper
1 def uri=(uri) 2 attribute_set :uri, ::URI.parse(uri).normalize.to_s 3 end
posted by
genki
on Sun 5 Apr 2009
at 06:56
DataMapper
1 def uri=(uri) 2 attribute_set :uri, ::URI.parse(uri).normalize.to_s 3 end