Module: AutoError::ApplicationHelper

Included in:
ApplicationController
Defined in:
app/helpers/auto_error/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#js_namespaceObject



3
4
5
6
# File 'app/helpers/auto_error/application_helper.rb', line 3

def js_namespace
  h = {} # nothing needed, really
  javascript_tag "window.App = #{h.to_json.html_safe};"
end

#void_pathObject



8
9
10
# File 'app/helpers/auto_error/application_helper.rb', line 8

def void_path
  'javascript:void(0);'
end