Sha256: bde541e4a207465f25f852d145ee19f09566a409f2b4461986e887014f410d7e
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
module Netzke module BaseExtras module Interface def get_widget(params = {}) components_cache = (ActiveSupport::JSON.decode(params[:components_cache]) if params[:components_cache]) || [] js = js_missing_code(components_cache) css = css_missing_code(components_cache) css = nil if css.blank? # if browser does not have our widget's (and all its dependencies') class and styles, send it over { :config => js_config, :js => js, :css => css } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems