Sha256: 98a033bdf634f49f1d83d7531f26ee85a0c195c5bec4edcb3f6d1252b9842b1f

Contents?: true

Size: 1014 Bytes

Versions: 4

Compression:

Stored size: 1014 Bytes

Contents

require File.join(File.dirname(__FILE__), '../lib/juggernaut')
require File.join(File.dirname(__FILE__), '../lib/juggernaut/rails')
require File.join(File.dirname(__FILE__), '../lib/juggernaut/rails/helpers')

Juggernaut.send(:include, Juggernaut::Rails::ConvenienceMethods)
ActionView::Base.send(:include, Juggernaut::Rails::Helpers)

ActionView::Helpers::AssetTagHelper.register_javascript_expansion :juggernaut => ['juggernaut/swfobject', 'juggernaut/juggernaut']
ActionView::Helpers::AssetTagHelper.register_javascript_expansion :juggernaut_jquery => ['juggernaut/json', 'juggernaut/juggernaut', 'juggernaut/jquerynaut', 'juggernaut/swfobject']

ActionController::Base.class_eval do
  alias_method :render_without_juggernaut, :render
  include Juggernaut::Rails::RenderExtension
  alias_method :render, :render_with_juggernaut
end

ActionView::Base.class_eval do
  alias_method :render_without_juggernaut, :render
  include Juggernaut::Rails::RenderExtension
  alias_method :render, :render_with_juggernaut
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
juggernaut_rails-0.6.2 rails/init.rb
juggernaut_rails-0.6.1 rails/init.rb
juggernaut_rails-0.6.0 rails/init.rb
juggernaut_rails-0.5.9 rails/init.rb