lib/erp_app/config.rb in erp_app-4.0.0 vs lib/erp_app/config.rb in erp_app-4.2.0

- old
+ new

@@ -1,14 +1,20 @@ module ErpApp module Config class << self - attr_accessor :widgets, :session_warn_after, :session_redirect_after + attr_accessor :widgets, :session_warn_after, + :session_redirect_after, :max_js_loader_order_index, + :shared_js_assets, :shared_css_assets + def init! @defaults = { :@widgets => [], - :@session_warn_after => 18, #in minutes - :@session_redirect_after => 20,#in minutes + :@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 def reset! @defaults.each do |k, v|