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

Use alias chain to avoid overwriting previous attribute method declarations #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

nickewing
Copy link

The current implementation defines accessor methods for the attributes it's declared for. When used with other plugins (such as globalize2), the accessor methods overwrite the functionality of the previously declared method. This patch uses alias method chaining to correct the problem.

Example of problem:

def foo
   read_attribute(:foo) + "bar"
end

acts_as_textiled :foo

@defunkt
Copy link
Owner

defunkt commented Jul 22, 2011

I don't maintain or use this library anymore. Maybe you want to take it over?

@nickewing
Copy link
Author

Yes, we can take it over. Could we transfer that to the AnalogAnalytics (analog-analytics) organization?

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.

3 participants