Sha256: 12c000ab5105817ae5324102bda21f7ee83e5ed5b5de76696a2932e919975c8a

Contents?: true

Size: 849 Bytes

Versions: 2

Compression:

Stored size: 849 Bytes

Contents

module Chanko
  module Config
    class << self
      attr_accessor(
        :auto_reload,
        :backtrace_limit,
        :cache_units,
        :compatible_css_class,
        :enable_logger,
        :propagated_errors,
        :proxy_method_name,
        :raise_error,
        :resolver,
        :units_directory_path
      )

      def reset
        self.auto_reload          = Rails.env.development? || Rails.env.test?
        self.backtrace_limit      = 10
        self.compatible_css_class = false
        self.enable_logger        = true
        self.propagated_errors    = []
        self.proxy_method_name    = :unit
        self.raise_error          = Rails.env.development?
        self.resolver             = ActionView::OptimizedFileSystemResolver
        self.units_directory_path = "app/units"
      end
    end

    reset
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chanko-2.0.2 lib/chanko/config.rb
chanko-2.0.1 lib/chanko/config.rb