Sha256: 1943fd2792e6e484732102596057aca2e3c3ed579cb25c36671a1fe356b6ec79

Contents?: true

Size: 332 Bytes

Versions: 16

Compression:

Stored size: 332 Bytes

Contents

require "rails/railtie"

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
scenic-1.8.0 lib/scenic/railtie.rb
scenic-1.7.0 lib/scenic/railtie.rb
scenic-1.6.0 lib/scenic/railtie.rb
scenic-1.5.5 lib/scenic/railtie.rb
scenic-1.5.4 lib/scenic/railtie.rb
scenic-1.5.3 lib/scenic/railtie.rb
scenic-1.5.2 lib/scenic/railtie.rb
scenic-1.5.1 lib/scenic/railtie.rb
scenic-1.5.0 lib/scenic/railtie.rb
scenic-1.4.1 lib/scenic/railtie.rb
scenic-1.4.0 lib/scenic/railtie.rb
scenic-1.3.0 lib/scenic/railtie.rb
scenic-1.2.0 lib/scenic/railtie.rb
scenic-1.1.1 lib/scenic/railtie.rb
scenic-1.1.0 lib/scenic/railtie.rb
scenic-1.0.0 lib/scenic/railtie.rb