Sha256: c12ca1591d31ce7acea4ad2aef90d65588eecb4e2f314dafba26d6b84fbf0ec6
Contents?: true
Size: 765 Bytes
Versions: 12
Compression:
Stored size: 765 Bytes
Contents
module TDiary class Application class Configuration attr_accessor :assets_paths, :assets_precompile, :plugin_paths, :path, :builder_procs, :authenticate_proc def initialize @assets_paths = [] # if you need to auto compilation for CoffeeScript @assets_precompile = false; @plugin_paths = [] @path = { index: '/', update: '/update.rb', assets: '/assets' } @builder_procs = [] @authenticate_proc = proc { } end def builder(&block) @builder_procs << block end def authenticate(middleware, *params, &block) @authenticate_proc = proc { use middleware, *params, &block } end end end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End:
Version data entries
12 entries across 12 versions & 1 rubygems