{"action":"created","issue":{"url":"https://api.github.com/repos/magnusvk/counter_culture/issues/88","labels_url":"https://api.github.com/repos/magnusvk/counter_culture/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/magnusvk/counter_culture/issues/88/comments","events_url":"https://api.github.com/repos/magnusvk/counter_culture/issues/88/events","html_url":"https://github.com/magnusvk/counter_culture/issues/88","id":51454986,"number":88,"title":"Brakes HATBM with Rails 4.2.0.rc2","user":{"login":"JanStevens","id":1540483,"avatar_url":"https://avatars.githubusercontent.com/u/1540483?v=3","gravatar_id":"","url":"https://api.github.com/users/JanStevens","html_url":"https://github.com/JanStevens","followers_url":"https://api.github.com/users/JanStevens/followers","following_url":"https://api.github.com/users/JanStevens/following{/other_user}","gists_url":"https://api.github.com/users/JanStevens/gists{/gist_id}","starred_url":"https://api.github.com/users/JanStevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanStevens/subscriptions","organizations_url":"https://api.github.com/users/JanStevens/orgs","repos_url":"https://api.github.com/users/JanStevens/repos","events_url":"https://api.github.com/users/JanStevens/events{/privacy}","received_events_url":"https://api.github.com/users/JanStevens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-09T17:18:26Z","updated_at":"2015-03-03T00:43:59Z","closed_at":null,"body":"Hello,\r\n\r\nAfter a long and deep bug hunting I found out that this gem brakes HABTM relations in a very fun way:\r\n\r\n```\r\nAccount should fail\r\n     Failure/Error: Unable to find matching line from backtrace\r\n     ActiveModel::MissingAttributeError:\r\n       can't write unknown attribute ``\r\n     # ./spec/support/database_cleaner.rb:60\r\n```\r\n\r\nI've create an example project on GitHub: https://github.com/JanStevens/counting_culture-issue4.2\r\nSince we have a quite big stack I've included the typical gems (but Im confident the issue is related to counter culture). The app include Apartment, Postgres, Rspec, DatabaseCleaner and of course counter culture\r\n\r\nFirst run the spec:\r\n```\r\nbundle exec rspec spec/models/account_spec.rb\r\n```\r\nIt will fail\r\n\r\nThen remove the gem in the `Gemfile` run the same spec again and TADA everything passes. As you can see my spec is very easy, I just create a HABTM relation object using FactoryGirl.\r\n\r\nNotice that I DONT USE counter_culture in any of my example models I only have it listed in the Gemfile.\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/magnusvk/counter_culture/issues/comments/76863709","html_url":"https://github.com/magnusvk/counter_culture/issues/88#issuecomment-76863709","issue_url":"https://api.github.com/repos/magnusvk/counter_culture/issues/88","id":76863709,"user":{"login":"jaygen","id":742745,"avatar_url":"https://avatars.githubusercontent.com/u/742745?v=3","gravatar_id":"","url":"https://api.github.com/users/jaygen","html_url":"https://github.com/jaygen","followers_url":"https://api.github.com/users/jaygen/followers","following_url":"https://api.github.com/users/jaygen/following{/other_user}","gists_url":"https://api.github.com/users/jaygen/gists{/gist_id}","starred_url":"https://api.github.com/users/jaygen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaygen/subscriptions","organizations_url":"https://api.github.com/users/jaygen/orgs","repos_url":"https://api.github.com/users/jaygen/repos","events_url":"https://api.github.com/users/jaygen/events{/privacy}","received_events_url":"https://api.github.com/users/jaygen/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T00:43:59Z","updated_at":"2015-03-03T00:43:59Z","body":":+1: Same issue here."}}