Module: CardController::Aliasing

Defined in:
card-mod-alias/lib/card_controller/aliasing.rb

Overview

overrides REST methods to handle alias redirects and card reloads

Instance Method Summary collapse

Instance Method Details

#readObject



4
5
6
7
8
# File 'card-mod-alias/lib/card_controller/aliasing.rb', line 4

def read
  return super unless redirect_to_aliased?

  hard_redirect target_url
end