Sha256: 2b01f15d5cfd75f04ac5f36e0b0dcd5e09cc674c2c0b85d2dc011482e2ac9fc6
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
# Switch the javascript_include_tag :defaults to # use jQuery instead of the default prototype helpers. # Also setup a :jquery expansion, just for good measure. # Written by: Logan Leger, logan@loganleger.com # http://github.com/lleger/Rails-3-jQuery ActionView::Helpers::AssetTagHelper.register_javascript_expansion :jquery => ['jquery', 'rails', 'prefilled_input'] ActiveSupport.on_load(:action_view) do ActiveSupport.on_load(:after_initialize) do ActionView::Helpers::AssetTagHelper::register_javascript_expansion :defaults => ['jquery', 'rails', 'prefilled_input'] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tsrails-2.0.3 | template/files/jquery.rb |
tsrails-2.0.2 | template/files/jquery.rb |
tsrails-2.0.0 | template/files/jquery.rb |