LOGIN / SIGN UP

/ vendor / plugins / jrails / init.rb

2 Commit: c4a1dce7306fed99999cd80148b8cf2b5160ff45
Author: Claes Nästén
Date: Tue Mar 02 14:17:06 +0100 2010
Subject: Fix conflict between jquery and prototype using jRails. Closing #246
No file history, only one commit
init.rb
 
1
2
3
4
5
6
# uncomment to use jQuery.noConflict()
#ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery'

ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery','jquery-ui','jrails']
ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
require 'jrails'