class Volt::Persistors::Params
Public Instance Methods
changed(attribute_name)
click to toggle source
# File lib/volt/models/persistors/params.rb, line 6 def changed(attribute_name) if RUBY_PLATFORM == 'opal' ` if (window.setTimeout && this.$run_update.bind) { if (window.paramsUpdateTimer) { clearTimeout(window.paramsUpdateTimer); } window.paramsUpdateTimer = setTimeout(this.$run_update.bind(this), 0); } ` end true end
run_update()
click to toggle source
# File lib/volt/models/persistors/params.rb, line 22 def run_update Volt.current_app.url.update! if Volt.client? end