You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's okay to use decorator methods in actionview,
but just like the following case, if I use decorator method in other decorator, it will be confronted with error.
it will be wonderful if it's possible to use decorator methods in decorator. that's the feature that needed in my situation.
Any ideas please.
moduleClassADecoratordefmtd_a"this is mtd a"endendmoduleClassBDecoratordefmtd_b# error, undefined method `mtd_a' for #<ClassA>ClassA.new.mtd_aendend
The text was updated successfully, but these errors were encountered:
thanks for your reply.
just because there are so many ClassA.new.mtd_a, so what I need is without decorate manually, it's able to use decorator methods in decorator by default.
It's okay to use decorator methods in actionview,
but just like the following case, if I use decorator method in other decorator, it will be confronted with error.
it will be wonderful if it's possible to use decorator methods in decorator. that's the feature that needed in my situation.
Any ideas please.
The text was updated successfully, but these errors were encountered: