Sha256: 1348fc8b11a2f0209dc1a39bf5a7a13b0e499dd507c930920306cde8acdbbf27

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery-rails-0.1.3 lib/jquery-rails.rb