Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.834 kb
require File.dirname(__FILE__) + '/lib/juggernaut'
require File.dirname(__FILE__) + '/lib/juggernaut_helper'
# ActionView::Helpers::AssetTagHelper::register_javascript_include_default('juggernaut')
# ActionView::Helpers::AssetTagHelper::register_javascript_include_default('swfobject')
ActionView::Base.send(:include, Juggernaut::JuggernautHelper)
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :juggernaut => ['juggernaut/swfobject', 'juggernaut/juggernaut']
ActionController::Base.class_eval do
alias_method :render_without_juggernaut, :render
include Juggernaut::RenderExtension
alias_method :render, :render_with_juggernaut
end
ActionView::Base.class_eval do
alias_method :render_without_juggernaut, :render
include Juggernaut::RenderExtension
alias_method :render, :render_with_juggernaut
end
Jump to Line
Something went wrong with that request. Please try again.