Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with serialized_attributes gem #190

Merged
merged 1 commit into from Jan 21, 2013

Conversation

dwbutler
Copy link
Contributor

@dwbutler dwbutler commented Jan 7, 2013

Hi,

I've been trying to use Paper Trail with the serialized_attributes gem. After much pain and anguish, I figured out that both Paper Trail and SerializedAttributes define the same class method on the model: serialize_attributes. You can imagine the havoc this caused. =)

I think the best solution is to change the method names in Paper Trail. This is because the serialize_attributes method in the Serialized Attributes gem is a public interface. You must call this method in order to enable the gem. In Paper Trail, this method is only used internally. So it should be safe to change the method names in Paper Trail. Another advantage is that serialize_attributes is a pretty generic method name, which may interfere with other gems, so it's good to make the name more specific to Paper Trail.

@batter batter merged commit 667dc7c into paper-trail-gem:master Jan 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants