mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Add delete_content_for helper, can be used for removing the sidebar from spree views
This commit is contained in:
9
config/initializers/delete_content_for.rb
Normal file
9
config/initializers/delete_content_for.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module ActionView
|
||||
module Helpers
|
||||
module CaptureHelper
|
||||
def delete_content_for(name)
|
||||
@view_flow.set(name, nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user