I have an application including a big backoffice part. I have a "backoffice" folder for my controllers, my helpers, and my views.
And typically, for many models I have a controller for the front, and another one in the backoffice folder. Like this:
-controllers/
-products_controller.rb
-backoffice/
-products_controller.rb
The thing is, in many models, I have to do the same thing in front and in backoffice. Today, I have the same method in both controllers, which do the same thing. (I know...)
So, do you have any advice to dry this up?
Thanks !