acts_as_textiled icon indicating copy to clipboard operation
acts_as_textiled copied to clipboard

Use alias chain to avoid overwriting previous attribute method declarations

Open nickewing opened this issue 13 years ago • 2 comments

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

nickewing avatar Jul 21 '11 21:07 nickewing

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

defunkt avatar Jul 22 '11 05:07 defunkt

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

nickewing avatar Jul 22 '11 16:07 nickewing