Class: TFA::TfasController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/tfa/tfas_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
# File 'app/controllers/tfa/tfas_controller.rb', line 3

def show
  @tfa = Tfa.find_by(id: params[:id])
  head 404 if @tfa.used
end