module Pugin::Helpers::ControllerHelpers

A set of controller methods that can be used to enable and disable Pugin features

@since 0.7.0

Public Instance Methods

disable_asset_overrides() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 27
def disable_asset_overrides
  Pugin::Feature.disable('AssetOverrides')
end
disable_pingdom() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 35
def disable_pingdom
  Pugin::Feature.disable('Pingdom')
end
disable_status_banner() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 11
def disable_status_banner
  Pugin::Feature.disable('StatusBanner')
end
enable_asset_overrides() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 23
def enable_asset_overrides
  Pugin::Feature.enable('AssetOverrides')
end
enable_pingdom() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 31
def enable_pingdom
  Pugin::Feature.enable('Pingdom')
end
enable_status_banner() click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 7
def enable_status_banner
  Pugin::Feature.enable('StatusBanner')
end
reset_bandiera_features() click to toggle source

This will reset the built in Bandiera feature cache for Pugin.

Use this when you want to get the latest flag values from Bandiera.

If you don't reset the values will persist across page loads.

# File lib/pugin/helpers/controller_helpers.rb, line 44
def reset_bandiera_features
  Pugin::Feature::Bandiera.reset
end