Sha256: c74b333619349a6b17ba7e34dfe4dbae116d4b8aedb8db3d6eaadb00334a99c0
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
module Hancock include Hancock::PluginConfiguration def self.config_class Configuration end def self.configure yield configuration Hancock::PLUGINS.map(&:reconfigure!) end class Configuration attr_accessor :main_index_layout attr_accessor :error_layout attr_accessor :localize attr_accessor :ability_manager_config attr_accessor :ability_admin_config attr_accessor :admin_enter_captcha attr_accessor :registration_captcha attr_accessor :recaptcha_support attr_accessor :simple_captcha_support attr_accessor :captcha_on_development attr_accessor :history_tracking def initialize @main_index_layout = 'application' @error_layout = 'application' @localize = false @ability_manager_config = [] @ability_admin_config = [] @recaptcha_support = defined?(Recaptcha) @simple_captcha_support = defined?(SimpleCaptcha) @admin_enter_captcha = @recaptcha_support or @simple_captcha_support @registration_captcha = @admin_enter_captcha @captcha_on_development = false @history_tracking = false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-2.0.0.2 | lib/hancock/configuration.rb |
hancock_cms-2.0.0.1 | lib/hancock/configuration.rb |