Sha256: 75617e9f629aa1911db4198c633dcaa354cdf5ea1912de4307d9e93b1e2aa9e8

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

module Mootools
  module Rails
    class Railtie < ::Rails::Railtie

      config.before_configuration do
        require "mootools-rails/assert_select_mootools" if ::Rails.env.test?

        jq_defaults = ::Rails.env.production? ? %w(mootools.min) : %w(mootools)

        config.action_view.javascript_expansions[:defaults] = jq_defaults + %w(rails)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mootools-rails-0.2 lib/mootools-rails.rb