Sha256: 9c9b35e03337ccc89520d6e704c64e32b61712110d4a3379ce751c75fec06f45

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true
require "active_record"

require "active_record/connection_adapters/postgresql_adapter"

require "jsonb_accessor/version"
require "jsonb_accessor/macro"
require "jsonb_accessor/query_builder"

module JsonbAccessor
  extend ActiveSupport::Concern
  include Macro
end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jsonb_accessor-1.0.0.beta.4 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0.beta.3 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0.beta.2 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0.beta.1 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0.beta lib/jsonb_accessor.rb