Sha256: 527ccaef596de853f7a317c089c221ca8264974d98d10f7855e33213436b442b

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require "rails/railtie"

module FxAggregate
  # Automatically initializes Fx in the context of a Rails application when
  # ActiveRecord is loaded.
  #
  # @see Fx.load
  class Railtie < Rails::Railtie
    initializer "fx-aggregate.load", after: "fx.load" do
      ActiveSupport.on_load :active_record do
        FxAggregate.load
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fx-aggregate-0.1.0 lib/fx-aggregate/railtie.rb