Module: Html5::SlimRails::BoilerplateHelper

Defined in:
lib/html5/slim_rails/boilerplate_helper.rb

Instance Method Summary collapse

Instance Method Details

#google_account_idObject



6
7
8
# File 'lib/html5/slim_rails/boilerplate_helper.rb', line 6

def 
  ENV['GOOGLE_ACCOUNT_ID'] || google_config(:google_account_id)
end

#google_api_keyObject



10
11
12
# File 'lib/html5/slim_rails/boilerplate_helper.rb', line 10

def google_api_key
  ENV['GOOGLE_API_KEY'] || google_config(:google_api_key)
end

#local_jquery(version) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/html5/slim_rails/boilerplate_helper.rb', line 22

def local_jquery(version)
  if ::Rails.env == 'development'
    "#{version}/jquery.js"
  else
    "#{version}/jquery.min.js"
  end
end

#remote_jquery(version) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/html5/slim_rails/boilerplate_helper.rb', line 14

def remote_jquery(version)
  if ::Rails.env == 'development'
    "'jquery', '#{version}', {uncompressed:true}"
  else
    "'jquery', '#{version}'"
  end
end