Sha256: 76411342b5ee7a329cca029be1a351a6a8e98e8ccdb28b2d23e1b57209cfa05a

Contents?: true

Size: 1015 Bytes

Versions: 1

Compression:

Stored size: 1015 Bytes

Contents

# rubocop:disable Naming/FileName
require "active_record"
require "active_support/concern"
require "heredity"
require "protobuf"

# To support Rails 4 apps that use Mass-Assignment Security, attempt to
# load the protected_attributes gem. If it's not present, move along...
begin
  require "protected_attributes"
rescue LoadError # rubocop:disable Lint/HandleExceptions
  # These aren't the droids you're looking for... move along.
end

require "protobuf/active_record/config"
require "protobuf/active_record/middleware/connection_management"
require "protobuf/active_record/middleware/connection_management_async"
require "protobuf/active_record/middleware/query_cache"
require "protobuf/active_record/model"
require "protobuf/active_record/version"

module Protobuf
  module ActiveRecord
    def self.config
      @config ||= Protobuf::ActiveRecord::Config.new
    end

    # Initialize the config
    config
  end
end

require "protobuf/active_record/railtie" if defined?(Rails)
# rubocop:enable Naming/FileName

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
protobuf-activerecord-3.6.1 lib/protobuf-activerecord.rb