Sha256: cd28ace28fb3ebf4522f13dd687d8790e3bdaf547aa716f26ea3fa3e3f74cc5f

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

module Scribo
  module ActiveModel
    class ErrorsDrop < Liquid::Drop
      def initialize(object)
        @object = object
      end
      delegate :base, :details, to: :@object

      def messages
        @object.messages.stringify_keys
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
scribo-1.0.44 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.43 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.42 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.41 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.40 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.39 app/drops/scribo/active_model/errors_drop.rb
scribo-1.0.38 app/drops/scribo/active_model/errors_drop.rb