Sha256: 0abff592a56194d35561f1f49849706494cdecc7539a2aa3c8bdb3baa8792211

Contents?: true

Size: 424 Bytes

Versions: 9

Compression:

Stored size: 424 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 =~ /^[4]/
          require 'action_view/dependency_tracker'
          ActionView::DependencyTracker.register_tracker :rabl, Rabl::Tracker
        end
      end
    end
  end # Railtie
end # Rabl

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rabl-0.11.7 lib/rabl/railtie.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rabl-0.11.6/lib/rabl/railtie.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rabl-0.11.6/lib/rabl/railtie.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rabl-0.11.6/lib/rabl/railtie.rb
rabl-0.11.6 lib/rabl/railtie.rb
rabl-0.11.5 lib/rabl/railtie.rb
rabl-0.11.4 lib/rabl/railtie.rb
rabl-0.11.3 lib/rabl/railtie.rb
rabl-0.11.2 lib/rabl/railtie.rb