Sha256: a29410d12b9a81fdeaec57a2eff14bf1a2861de063601e5b01aed41920a0cb9c
Contents?: true
Size: 869 Bytes
Versions: 51
Compression:
Stored size: 869 Bytes
Contents
# frozen_string_literal: true require "sequel" module ReeDao include Ree::PackageDSL package do depends_on :ree_array depends_on :ree_dto depends_on :ree_enum depends_on :ree_mapper depends_on :ree_string depends_on :ree_object depends_on :ree_hash end require_relative "./ree_dao/dsl" require_relative "./ree_dao/thread_parents" require_relative "./ree_dao/aggregate_dsl" require_relative "./ree_dao/association_methods" require_relative "./ree_dao/associations" require_relative "./ree_dao/association" def self.load_sync_associations_enabled? ENV.has_key?("REE_DAO_SYNC_ASSOCIATIONS") && ENV["REE_DAO_SYNC_ASSOCIATIONS"] == "true" end end # ReeEnum::Value#sql_literal is used to properly serialize enum values # for database queries class ReeEnum::Value def sql_literal(*) mapped_value.to_s end end
Version data entries
51 entries across 51 versions & 1 rubygems