Sha256: e4a0516208aafd3e63f637bfdb59ecb3ed0c97d52a9dd33aba62d377d4b16ed5

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

module Rabl
  class Railtie < Rails::Railtie
    initializer "rabl.initialize" do |app|
      ActiveSupport.on_load(:action_view) do
        Rabl.register!

        # Inject dependency tracker for :rabl
        if Rails.version =~ /^[45]/
          require 'action_view/dependency_tracker'
          ActionView::DependencyTracker.register_tracker :rabl, Rabl::Tracker
        end
      end
    end
  end # Railtie
end # Rabl

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rabl-0.13.1 lib/rabl/railtie.rb
rabl-0.13.0 lib/rabl/railtie.rb
rabl-0.12.0 lib/rabl/railtie.rb
rabl-0.11.8 lib/rabl/railtie.rb