Customize a Helper

To customize a Workarea helper method, you need to create a new helper in your app and add that helper to a controller so that Rails loads it. Within that helper, redefine the helper method you want to customize.

Note: Because of the way Rails loads helpers, helpers cannot be decorated like classes.

your_app/app/helpers/workarea/storefront/your_helper.rb:

module Workarea
  module Storefront
    module YourHelper
      # redefine a helper method from Workarea that you want to customize
      def foo
        'bar'
      end
    end
  end
end

And in a to_prepare block...

your_app/config/application.rb :

module YourApp
    class Application < Rails::Application
      # ...

      config.to_prepare do
        Workarea::Storefront::ApplicationController.helper(Workarea::Storefront::YourHelper)
      end

      # ...
    end
  end