Hi Arek,
You can override a method in your extension by using the following:
OrdersController.class_eval do
def create
#insert new action here
end
end
Hope that helps
Ryan
On Mar 31, 7:02 pm, Arek Flinik <afli...@gmail.com> wrote:
> Hi,
>
> I'd like to create extension which would override just one method in
> existing controller (in this case, create action in OrdersController).
> After hours of trying i've ran out of ideas on how to do it withous
> copy-pasting existing controller file. Does anyone have an idea on how
> to do it in nice and clean way?
>
> Thanks,
> Arek Flinik
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.
No comments:
Post a Comment