Sha256: 718a89027b1f2bf7c99a297ef5f8c0cc3c7383c3717cc247743df61c0600e082

Contents?: true

Size: 497 Bytes

Versions: 5

Compression:

Stored size: 497 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_helper"
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.3.0 lib/jsonb_accessor.rb
jsonb_accessor-1.2.0 lib/jsonb_accessor.rb
jsonb_accessor-1.1.0 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0 lib/jsonb_accessor.rb
jsonb_accessor-1.0.0.beta.7 lib/jsonb_accessor.rb