Sha256: 3b1369e473d2e80a4fc41f881f34c120ab370560cba8d480b5fd7700f5030c07

Contents?: true

Size: 633 Bytes

Versions: 17

Compression:

Stored size: 633 Bytes

Contents

module Protobuf
  module ActiveRecord
    class Railtie < Rails::Railtie
      config.protobuf_active_record = Protobuf::ActiveRecord.config

      ActiveSupport.on_load(:active_record) do
        on_inherit do
          include Protobuf::ActiveRecord::Model if Protobuf::ActiveRecord.config.autoload
        end
      end

      ActiveSupport.on_load(:protobuf_rpc_service) do
        Protobuf::Rpc.middleware.insert_after Protobuf::Rpc::Middleware::Logger, Middleware::ConnectionManagementAsync
        Protobuf::Rpc.middleware.insert_after Middleware::ConnectionManagementAsync, Middleware::QueryCache
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
protobuf-activerecord-7.0.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-6.1.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-6.0.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-5.2.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-5.1.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-5.0.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-5.1.0.beta lib/protobuf/active_record/railtie.rb
protobuf-activerecord-5.0.0.beta lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.6.1 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.6.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.5.1 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.5.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.4.4 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.4.4.pre lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.4.3 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.4.2 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.4.1 lib/protobuf/active_record/railtie.rb