Skip to content

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

Open
nickewing wants to merge 7 commits into
defunkt:masterfrom
analog-analytics:master
Open

Use alias chain to avoid overwriting previous attribute method declarations#3
nickewing wants to merge 7 commits into
defunkt:masterfrom
analog-analytics:master

Conversation

@nickewing
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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