Sha256: 2baa1035325f36ea9a7359131f18f592960c6d590382d8e208ed9bfe1e695277
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
# frozen_string_literal: true module Saml module Kit # This module is responsible # for translating error messages # to the current locale. module Translatable # @!visibility private def error_message(attribute, options = {}) default_options = { scope: "saml/kit.errors.#{name}" } I18n.translate(attribute, **default_options.merge(options)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
saml-kit-1.3.0 | lib/saml/kit/concerns/translatable.rb |