Sha256: 207e53045633eb85c038db18e7172bfc81601064f2a075da267663247ddfb3f7
Contents?: true
Size: 316 Bytes
Versions: 64
Compression:
Stored size: 316 Bytes
Contents
class RedirectDecorator < ApplicationDecorator delegate_all def status_code_collection %w(301 303 307).map do |code| [I18n.t("b.msg.status_codes.#{code}"), code] end end def summary "#{I18n.t('b.from')} #{object.source_uri} #{I18n.t('b.to').downcase} #{object.destination_uri}" end end
Version data entries
64 entries across 64 versions & 1 rubygems