Sha256: fc8e7afc07598d4527fd291a2b36daa1eb47d54a5afa30a64828fc32fe2c4ad2

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module Chanko
  module Config
    class << self
      attr_accessor(
        :auto_reload,
        :backtrace_limit,
        :cache_units,
        :compatible_css_class,
        :eager_load,
        :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.eager_load           = Rails.env.production?
        self.propagated_errors    = []
        self.proxy_method_name    = :unit
        self.raise_error          = Rails.env.development?
        self.resolver             = Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('7') ? ActionView::FileSystemResolver : ActionView::OptimizedFileSystemResolver
        self.units_directory_path = "app/units"
      end
    end

    reset
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chanko-2.2.1 lib/chanko/config.rb