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.
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
module YourApp class Application < Rails::Application # ... config.to_prepare do Workarea::Storefront::ApplicationController.helper(Workarea::Storefront::YourHelper) end # ... end end
How'd We Do?
Was this article missing something?
Was it not quite what you were looking for?
Do you have suggestions on how we could improve this article or your experience in general?
If so, please take a moment to let us know!
Your invaluable feedback will help everyone better understand the platform!