Sha256: a3032b133ac33c6d180e8d1bcab2790e1363802e8be5d83fb3b8502ce9f8a276
Contents?: true
Size: 730 Bytes
Versions: 7
Compression:
Stored size: 730 Bytes
Contents
require 'active_support/configurable' module HowTo def self.configure(&block) yield @config ||= HowTo::Configuration.new end # Global settings for HowTo def self.config @config end class Configuration #:nodoc: include ActiveSupport::Configurable config_accessor :rich_text_enabled config_accessor :authorization_method_to_manage config_accessor :authorization_method_to_view config_accessor :permitted_to_manage_how_to end configure do |config| config.rich_text_enabled = false config.authorization_method_to_manage = 'authorize_to_manage_how_to' config.authorization_method_to_view = nil config.permitted_to_manage_how_to = 'permitted_to_manage_how_to?' end end
Version data entries
7 entries across 7 versions & 1 rubygems