Sha256: 6b44b3e843e6ca4e36cf46ef2f16c126063f0d9d0359843a4f8d8fa4133482d5

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module Clowne
  module Adapters # :nodoc: all
    class ActiveRecord
      module Associations
        class Noop < Base
          def call(record)
            warn(
              "[Clowne] Reflection #{reflection.class.name} is not supported "\
              "(#{@association_name} for #{@source.class})"
            )
            record
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
clowne-1.4.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-1.3.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-1.2.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-1.1.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-1.0.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-0.2.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-0.1.0 lib/clowne/adapters/active_record/associations/noop.rb
clowne-0.1.0.beta1 lib/clowne/adapters/active_record/associations/noop.rb