Project

General

Profile

« Previous | Next » 

Revision c873b3cd

Added by Joseph Magen over 9 years ago

fixes #8802 - add Turbolinks support

View differences:

app/helpers/layout_helper.rb
end
def stylesheet(*args)
content_for(:stylesheets) { stylesheet_link_tag(*args) }
content_for(:stylesheets) { stylesheet_link_tag(*args.push("data-turbolinks-track" => true)) }
end
def javascript(*args)
content_for(:javascripts) { javascript_include_tag(*args) }
content_for(:javascripts) { javascript_include_tag(*args.push("data-turbolinks-track" => true)) }
end
def addClass(options = {}, new_class = '')

Also available in: Unified diff