Sha256: 1a826d1e5fe0226ef0df614da143818deeee2284c9876bd1e22c70b0ab915493

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require 'rails/railtie'

require 'beholders/callback_hooks'

module Beholders

  class Railtie < Rails::Railtie
    initializer 'beholders.add_to_active_record' do
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send(:extend, CallbackHooks)
      end
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beholders-1.0.0 lib/beholders/railtie.rb