module ErpApp::Config
Attributes
max_js_loader_order_index[RW]
session_redirect_after[RW]
session_warn_after[RW]
widgets[RW]
Public Class Methods
configure(&blk)
click to toggle source
# File lib/erp_app/config.rb, line 26 def configure(&blk) @configure_blk = blk end
configure!()
click to toggle source
# File lib/erp_app/config.rb, line 30 def configure! @configure_blk.call(self) if @configure_blk end
init!()
click to toggle source
# File lib/erp_app/config.rb, line 9 def init! @defaults = { :@widgets => [], :@shared_js_assets => [], :@shared_css_assets => [], :@session_warn_after => 60, #in minutes :@session_redirect_after => 90,#in minutes :@max_js_loader_order_index => 9999 # max loader order index for a js file } end
reset!()
click to toggle source
# File lib/erp_app/config.rb, line 20 def reset! @defaults.each do |k, v| instance_variable_set(k, v) end end