{"action":"opened","issue":{"url":"https://api.github.com/repos/norman/friendly_id/issues/660","labels_url":"https://api.github.com/repos/norman/friendly_id/issues/660/labels{/name}","comments_url":"https://api.github.com/repos/norman/friendly_id/issues/660/comments","events_url":"https://api.github.com/repos/norman/friendly_id/issues/660/events","html_url":"https://github.com/norman/friendly_id/issues/660","id":65989241,"number":660,"title":"Breaks validates uniqueness: true","user":{"login":"alexanderperls","id":11775831,"avatar_url":"https://avatars.githubusercontent.com/u/11775831?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderperls","html_url":"https://github.com/alexanderperls","followers_url":"https://api.github.com/users/alexanderperls/followers","following_url":"https://api.github.com/users/alexanderperls/following{/other_user}","gists_url":"https://api.github.com/users/alexanderperls/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderperls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderperls/subscriptions","organizations_url":"https://api.github.com/users/alexanderperls/orgs","repos_url":"https://api.github.com/users/alexanderperls/repos","events_url":"https://api.github.com/users/alexanderperls/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderperls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T18:54:05Z","updated_at":"2015-04-02T18:54:05Z","closed_at":null,"body":"This seems to be the same issue as reported in the closed issue #152 \r\n\r\nMy Gem file:\r\n\r\n```ruby\r\nruby '2.2.0'\r\ngem 'rails', '4.2.0'\r\ngem 'friendly_id', '~> 5.1.0'\r\n```\r\n\r\n\r\n\r\nHere is my model code:\r\n```ruby\r\nvalidates :title, presence: true, uniqueness: true\r\n  extend FriendlyId\r\n  friendly_id :title, :use => :slugged\r\n```\r\n\r\nThe  \r\n\r\n```ruby\r\npresence: true\r\n```\r\n\r\nvalidation works well, but my app does not apply the uniqueness validation... it will happily make model instances with duplicate :titles.\r\n\r\nElsewhere in my app, in models where I am not using Friendly_ID, I find the uniqueness validations work well. \r\n\r\nAlso -- the slugging behavior and other features of Friendly_id do work as advertised.\r\n\r\nthanks\r\n\r\n\r\n\r\n\r\n"}}