Sha256: bcc17b1253bb48f3ef7906b0fd17010aa5cc95726de61d4fc8e9757c7526934f

Contents?: true

Size: 908 Bytes

Versions: 12

Compression:

Stored size: 908 Bytes

Contents

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
  # 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)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
protobuf-activerecord-3.6.0 lib/protobuf-activerecord.rb
protobuf-activerecord-3.5.1 lib/protobuf-activerecord.rb
protobuf-activerecord-3.5.0 lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.4 lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.4.pre lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.3 lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.2 lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.1 lib/protobuf-activerecord.rb
protobuf-activerecord-3.4.0 lib/protobuf-activerecord.rb
protobuf-activerecord-3.3.8 lib/protobuf-activerecord.rb
protobuf-activerecord-3.3.7 lib/protobuf-activerecord.rb
protobuf-activerecord-3.3.6 lib/protobuf-activerecord.rb