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_global_search()
click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 19 def disable_global_search Pugin::Feature.disable('GlobalSearch') end
disable_pingdom()
click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 35 def disable_pingdom Pugin::Feature.disable('Pingdom') 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_global_search()
click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 15 def enable_global_search Pugin::Feature.enable('GlobalSearch') end
enable_pingdom()
click to toggle source
# File lib/pugin/helpers/controller_helpers.rb, line 31 def enable_pingdom Pugin::Feature.enable('Pingdom') 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