Sha256: 4a5a0d385afa9380751526d4285511282f5a6a1f1c66b6185b4b7915398e3927
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module Schneiderlein class Catch delegate :any?, :empty?, to: :errors attr_reader :request def initialize(request) @request = request end def to_a request.env.fetch('rack.schneiderlein.parse_errors', []) end alias errors to_a def to_s to_a.map(&:message).join ' ' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schneiderlein-1.0.0 | lib/schneiderlein/catch.rb |