markbates / mongoid-tags-arent-hard

A tagging gem for Mongoid 3 that doesn't actually suck.
MIT License
16 stars 12 forks source link

Do not attempt to set value when reading attribute from frozen object #13

Closed incorvia closed 10 years ago

incorvia commented 10 years ago

When reading from a object, this library attempts to set an attribute when the value is not a Mongoid::TagsArentHard object. This pull request ensures that we do not try to set that value when reading from a frozen object which commonly happens when using the destroy action in Rails with ActiveModel::Serializers.

markbates commented 10 years ago

Merged. I've also made you a committer on the project, so knock yourself out. :)

incorvia commented 10 years ago

Ha, awesome, thanks bud. See ya tonight

On Tue, Dec 10, 2013 at 12:07 PM, Mark Bates notifications@github.comwrote:

Merged. I've also made you a committer on the project, so knock yourself out. :)

— Reply to this email directly or view it on GitHubhttps://github.com/markbates/mongoid-tags-arent-hard/pull/13#issuecomment-30246696 .