Sha256: fb917fad977f1f4f7e986ef03e28c4d5d77b719b4a7ff91d28332fce668d26d0

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

require "rails/railtie"

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
fx-0.9.0 lib/fx/railtie.rb
fx-0.8.0 lib/fx/railtie.rb
fx-0.7.0 lib/fx/railtie.rb
fx-jets-0.6.3s lib/fx/railtie.rb
fx-0.6.2 lib/fx/railtie.rb
fx-0.6.1 lib/fx/railtie.rb
fx-0.6.0 lib/fx/railtie.rb