Sha256: 3cc6135ef3c64229ba50237db984791ba56e320a29a725ab837b21ef5dd7182a
Contents?: true
Size: 637 Bytes
Versions: 7
Compression:
Stored size: 637 Bytes
Contents
module Knitkit module Config class << self attr_accessor :unauthorized_url, :ignored_prefix_paths, :images_base_path def init! @defaults = { :@unauthorized_url => '/unauthorized', :@ignored_prefix_paths => [], :@images_base_path => File.join("public", "knitkit") } end def reset! @defaults.each do |k,v| instance_variable_set(k,v) end end def configure(&blk) @configure_blk = blk end def configure! @configure_blk.call(self) if @configure_blk end end init! reset! end end
Version data entries
7 entries across 7 versions & 1 rubygems