Sha256: 174041e58d0b1b8a472f572c77b733615582fa406d6773800553c1de102d492f

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 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
        on_inherit do
          include Protobuf::ActiveRecord::ServiceFilters
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protobuf-activerecord-3.1.0.alpha2 lib/protobuf/active_record/railtie.rb
protobuf-activerecord-3.1.0.alpha lib/protobuf/active_record/railtie.rb