docbrown/app/controllers/badges_controller.rb
2019-03-19 16:04:43 -04:00

9 lines
298 B
Ruby

class BadgesController < ApplicationController
before_action :set_cache_control_headers, only: [:show]
# No authorization required for entirely public controller
def show
@badge = Badge.find_by_slug(params[:slug]) || not_found
set_surrogate_key_header "badges-show-action"
end
end