I’m trying to override some method of a class. I’ve created an
acts_as_money method. The first parameter is the method name that
should be overridden. For example:
I have a model with an attribute “amount”. I want to be able to do
Then the amount method should be aliased to an already defined method
in the plugin.
I’ve got this code now:
But then I get this error: NameError: undefined method
amount' for classDeclaration’
And the Declaration model HAS a method amount. Does anyone now how I
can solve this problem?