Module: NoCms::Pages::PagesHelper
- Defined in:
- app/helpers/no_cms/pages/pages_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_page_block(page, block, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/helpers/no_cms/pages/pages_helper.rb', line 4 def render_page_block page, block, = {} # If cache is disabled for all pages or is disabled for this block # then we disable no matter what the block or the options passed have to say about it. # This way, the user in the back has the last word about disabling cache and the NoCms::Pages engine # control the cache over the NoCms::Block engine [:cache_enabled] = false if !NoCms::Pages.cache_enabled || !page.cache_enabled render_block block, end |