test/models/post.rb in permalink-0.1.1 vs test/models/post.rb in permalink-1.0.0
- old
+ new
@@ -1,5 +1,5 @@
class Post < ActiveRecord::Base
- has_permalink :title, :unique => true, :to_param => :permalink
-
+ permalink :title, :unique => true, :to_param => :permalink
+
validates_uniqueness_of :permalink
end
\ No newline at end of file