Sha256: 4bb4b74f564b5d9e7ffbed166daf3ca99a81c1a5bf33a394906c4d4025b866ed
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
require 'jquery_on_rails' require 'rails' class JQueryOnRails::Railtie < Rails::Railtie config.action_view.javascript_expansions[:defaults] = %w(jquery rails) initializer "jquery_on_rails.action_view_helpers" do ActiveSupport.on_load(:action_view) do # We want to override Prototype and Scriptaculous - include them first. require 'action_view/helpers' require 'action_view/helpers/javascript_helper' require 'action_view/helpers/prototype_helper' require 'action_view/helpers/scriptaculous_helper' # Include our helpers that override everything. require 'jquery_on_rails/helpers/jquery_helper' ActionView::Helpers::JavaScriptHelper.send :include, JQueryOnRails::Helpers::JQueryHelper ActionView::Helpers.send :include, JQueryOnRails::Helpers::JQueryHelper ActionView::Base.send :include, JQueryOnRails::Helpers::JQueryHelper end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jquery_on_rails-0.3.0 | lib/jquery_on_rails/railtie.rb |