Sha256: 43c559814c303e959c38984cf2a6d99034a0a6db68d4e135daeffb358faca362

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require "active_record"

require "active_record/connection_adapters/postgresql_adapter"

require "jsonb_accessor/version"
require "jsonb_accessor/type_helper"
require "jsonb_accessor/nested_base"
require "jsonb_accessor/class_builder"
require "jsonb_accessor/macro"

module JsonbAccessor
  extend ActiveSupport::Concern
  include Macro
end

ActiveSupport.on_load(:active_record) do
  ActiveRecord::Base.send(:include, JsonbAccessor)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jsonb_accessor-0.2.0 lib/jsonb_accessor.rb
jsonb_accessor-0.1.0 lib/jsonb_accessor.rb