Sha256: 95a97f847ffbc21aa45f6ab146a84479edf50702d654ef8e8a9a90dc2f60c1a3

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

require 'sample_filter/active_record_extension'
require 'sample_filter/action_view_extension'

module SampleFilter
  class Engine < ::Rails::Engine
    isolate_namespace SampleFilter

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sample_filter-0.1.7 lib/sample_filter/engine.rb
sample_filter-0.1.6 lib/sample_filter/engine.rb
sample_filter-0.1.5 lib/sample_filter/engine.rb
sample_filter-0.1.4 lib/sample_filter/engine.rb
sample_filter-0.1.3 lib/sample_filter/engine.rb
sample_filter-0.1.2 lib/sample_filter/engine.rb