templates/jrails-1.4/config/initializers/jrails.rb in compass-jquery-plugin-0.3.0.beta.1 vs templates/jrails-1.4/config/initializers/jrails.rb in compass-jquery-plugin-0.3.0.beta.2

- old
+ new

@@ -1,31 +1,31 @@ -# ==== -# The following options can be changed by creating an initializer in config/initializers/jrails.rb -# ==== -# ActionView::Helpers::PrototypeHelper::JQUERY_VAR -# jRails uses jQuery.noConflict() by default -# to use the regular jQuery syntax, use: -# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$' -ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery' - -# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION -# Set this to disable forgery protection in ajax calls -# This is handy if you want to use caching with ajax by injecting the forgery token via another means -# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery -# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true -# ==== - -ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery-1.4.2.min', 'jquery-ui-1.8.min', 'jrails.min'] -ActionView::Helpers::AssetTagHelper::reset_javascript_include_default - -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery_142 => ['jquery-1.4.2.min', 'jquery-ui-1.8.min'] -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jrails => ['jrails.min'] -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jhaml => ['jquery.haml.min'] -ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu => ['compiled/jquery.ui/contextMenu.css'] -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min'] -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min'] -ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min'] - - -require 'jquery/jrails' -require 'jquery/jquery_selector_assertions' if RAILS_ENV == 'test' +# ==== +# The following options can be changed by creating an initializer in config/initializers/jrails.rb +# ==== +# ActionView::Helpers::PrototypeHelper::JQUERY_VAR +# jRails uses jQuery.noConflict() by default +# to use the regular jQuery syntax, use: +# ActionView::Helpers::PrototypeHelper::JQUERY_VAR = '$' +ActionView::Helpers::PrototypeHelper::JQUERY_VAR = 'jQuery' + +# ActionView::Helpers::PrototypeHelper:: DISABLE_JQUERY_FORGERY_PROTECTION +# Set this to disable forgery protection in ajax calls +# This is handy if you want to use caching with ajax by injecting the forgery token via another means +# for an example, see http://henrik.nyh.se/2008/05/rails-authenticity-token-with-jquery +# ActionView::Helpers::PrototypeHelper::DISABLE_JQUERY_FORGERY_PROTECTION = true +# ==== + +ActionView::Helpers::AssetTagHelper::JAVASCRIPT_DEFAULT_SOURCES = ['jquery-1.4.2.min', 'jquery-ui-1.8.min', 'jrails.min'] +ActionView::Helpers::AssetTagHelper::reset_javascript_include_default + +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery_142 => ['jquery-1.4.2.min', 'jquery-ui-1.8.min'] +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jrails => ['jrails.min'] +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jhaml => ['jquery.haml.min'] +ActionView::Helpers::AssetTagHelper.register_stylesheet_expansion :contextMenu => ['compiled/jquery.ui/contextMenu.css'] +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :contextMenu => ['jquery.contextMenu.min'] +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min'] +ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min'] + + +require 'jquery/jrails' +require 'jquery/jquery_selector_assertions' if RAILS_ENV == 'test' require 'jquery/jquery_auto_complete' \ No newline at end of file