Class: ScavengerHunt::HintsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ScavengerHunt::HintsController
- Defined in:
- lib/scavenger_hunt/app/controllers/scavenger_hunt/hints_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 |
# File 'lib/scavenger_hunt/app/controllers/scavenger_hunt/hints_controller.rb', line 7 def show if @hint.used_at.present? || params[:confirm] @hint.update_attributes(used_at: Time.now) unless @hint.used_at.present? render :really_show end end |