Sha256: c633dd349b5aabb1a911838ec879958d5eecb431b6a5fa5bf0f04358e13ad0c2

Contents?: true

Size: 288 Bytes

Versions: 9

Compression:

Stored size: 288 Bytes

Contents

# frozen_string_literal: true

module Pursuit
  class Railtie < Rails::Railtie
    initializer 'pursuit.active_record.inject_dsl' do
      ActiveSupport.on_load(:active_record) do
        require 'pursuit/dsl'

        ActiveRecord::Base.include(Pursuit::DSL)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pursuit-0.4.5 lib/pursuit/railtie.rb
pursuit-0.4.3 lib/pursuit/railtie.rb
pursuit-0.4.2 lib/pursuit/railtie.rb
pursuit-0.4.1 lib/pursuit/railtie.rb
pursuit-0.4.0 lib/pursuit/railtie.rb
pursuit-0.3.2 lib/pursuit/railtie.rb
pursuit-0.3.1 lib/pursuit/railtie.rb
pursuit-0.3.0 lib/pursuit/railtie.rb
pursuit-0.2.0 lib/pursuit/railtie.rb