Module: Siesta::ApplicationHelper

Defined in:
app/helpers/siesta/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#include_siesta_configObject



3
4
5
6
7
8
9
# File 'app/helpers/siesta/application_helper.rb', line 3

def include_siesta_config
  if asset_exists?('siesta_config.js')
    javascript_include_tag 'siesta_config'
  else
    javascript_include_tag 'siesta/siesta_config'
  end
end

#include_test_harnessObject



11
12
13
14
15
16
17
# File 'app/helpers/siesta/application_helper.rb', line 11

def include_test_harness
  if Siesta.config.auto_organizing
    (:script, test_harness, { :type => 'text/javascript' }, false)
  else
    javascript_include_tag 'test_harness'
  end
end