Sha256: c87343e600ee39051e8270cdfa2d5bac162fc64e5307d84afe42071c114ac278

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

module Jquery  
    class Railtie < Rails::Railtie
      config.before_initialize do
        if Rails.root.join("public/javascripts/jquery-ui.js").exist?
          config.action_view.javascript_expansions[:defaults] = %w(jquery jquery-ui rails)
        else
          config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
        end
      end
    end  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jquery_rails3-1.6.1 lib/jquery_rails3.rb
jquery_rails3-1.6 lib/jquery_rails3.rb
jquery_rails3-1.4.3 lib/jquery_rails3.rb