Sha256: 60a21a3b51b250c5457167898828e4a65823bdfe4887824daba2aa017e618f0a

Contents?: true

Size: 623 Bytes

Versions: 15

Compression:

Stored size: 623 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::ConnectionManagement
        Protobuf::Rpc.middleware.insert_after Middleware::ConnectionManagement, Middleware::QueryCache
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
protobuf-activerecord-3.3.8 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.7 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.6 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.5 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.4 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.3 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.2 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.1 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.3.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.2.2 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.2.1 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.2.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.1.1 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.1.0 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.1.0.rc1 lib/protobuf/active_record/railtie.rb