# File lib/refinerycms-theming.rb, line 53 def javascript_include_tag(*sources) theme = (arguments = sources.dup).extract_options![:theme] == true # don't ruin the current sources object tag = super # inject /theme/ into the javascript include tag src if this is themed. tag.gsub!(/\/javascripts\//, "/theme/javascripts/") if theme tag.gsub(/theme=(.+?)\ /, '') # we need to remove any addition of theme='false' etc. end