Sha256: f6e866d2eafc6cf6e9a1c84fe4b01d35c0ee4a9389ad97c6dae1ce31124f15c3

Contents?: true

Size: 818 Bytes

Versions: 5

Compression:

Stored size: 818 Bytes

Contents

# -*- coding: utf-8 -*-

require 'filterrific/param_set'

require 'filterrific/action_controller_extension'
require 'filterrific/action_view_extension'
require 'filterrific/active_record_extension'

module Filterrific
  class Engine < ::Rails::Engine

    # It's an engine so that we can add javascript and image assets
    # to the asset pipeline.

    isolate_namespace Filterrific

    ActiveSupport.on_load :action_controller do
      include Filterrific::ActionControllerExtension
    end

    ActiveSupport.on_load :action_view do
      include Filterrific::ActionViewExtension
    end

    ActiveSupport.on_load :active_record do
      extend Filterrific::ActiveRecordExtension
    end

    initializer "filterrific" do |app|
      app.config.assets.precompile += %w(filterrific-spinner.gif)
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
filterrific-2.0.4 lib/filterrific/engine.rb
filterrific-2.0.3 lib/filterrific/engine.rb
filterrific-2.0.2 lib/filterrific/engine.rb
filterrific-2.0.1 lib/filterrific/engine.rb
filterrific-2.0.0 lib/filterrific/engine.rb