Sha256: e503bac2be37d7056ddfd59709424db1022a649c363d76acd1d20fd3f253e587

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

require 'ar_protobuf_store'
require 'rails'

module ArProtobufStore
  class Railtie < ::Rails::Railtie
    initializer "ar_protobuf_store.active_record" do |app|
      ActiveSupport.on_load :active_record do
        Ar::Base.send :include, ArProtobufStore
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar_protobuf_store-0.1.0 lib/ar_protobuf_store/railtie.rb