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

Version Path
udongo-7.7.2 app/decorators/redirect_decorator.rb
udongo-7.7.1 app/decorators/redirect_decorator.rb
udongo-7.7.0 app/decorators/redirect_decorator.rb
udongo-7.6.2 app/decorators/redirect_decorator.rb
udongo-7.6.1 app/decorators/redirect_decorator.rb
udongo-7.6.0 app/decorators/redirect_decorator.rb
udongo-7.5.1 app/decorators/redirect_decorator.rb
udongo-7.5.0 app/decorators/redirect_decorator.rb
udongo-7.4.2 app/decorators/redirect_decorator.rb
udongo-7.4.1 app/decorators/redirect_decorator.rb
udongo-7.4.0 app/decorators/redirect_decorator.rb
udongo-7.3.5 app/decorators/redirect_decorator.rb
udongo-7.3.4 app/decorators/redirect_decorator.rb
udongo-7.3.3 app/decorators/redirect_decorator.rb
udongo-7.3.2 app/decorators/redirect_decorator.rb
udongo-7.3.1 app/decorators/redirect_decorator.rb
udongo-7.2.1 app/decorators/redirect_decorator.rb
udongo-7.2.0 app/decorators/redirect_decorator.rb
udongo-7.1.3 app/decorators/redirect_decorator.rb
udongo-7.1.2 app/decorators/redirect_decorator.rb