Sha256: 485ca487714b0979586ccc61f1012410fff7012ebe3eb7cf671cdb0541ee88be

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

require "filterrific/param_set"

require "filterrific/has_reset_filterrific_url_mixin"

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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
filterrific-5.2.6 lib/filterrific/engine.rb
filterrific-5.2.5 lib/filterrific/engine.rb
filterrific-5.2.4 lib/filterrific/engine.rb