Sha256: 63f4f73f058d442cd3b8733b78490d09f6e2669f91a703fd359431ee28039f60

Contents?: true

Size: 632 Bytes

Versions: 8

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require_relative "concern/instance_methods"
require_relative "concern/class_methods"

module ConvenientService
  module Core
    module Concern
      include Support::Concern

      included do |entity_class|
        ##
        # NOTE: Currently this aliasing is tested indirectly by `HasConstructor`.
        #
        # TODO: Direct test when `have_alias_method` starts to support classes.
        #
        entity_class.singleton_class.alias_method :new_without_commit_config, :new

        entity_class.include InstanceMethods

        entity_class.extend ClassMethods
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/core/concern.rb
convenient_service-0.19.0 lib/convenient_service/core/concern.rb
convenient_service-0.18.0 lib/convenient_service/core/concern.rb
convenient_service-0.17.0 lib/convenient_service/core/concern.rb
convenient_service-0.16.0 lib/convenient_service/core/concern.rb
convenient_service-0.15.0 lib/convenient_service/core/concern.rb
convenient_service-0.14.0 lib/convenient_service/core/concern.rb
convenient_service-0.13.0 lib/convenient_service/core/concern.rb