Sha256: 76004b5cb458d4bae5d520a19801b6f2b60dcb1ad2a3330a68f300d0bf018148
Contents?: true
Size: 407 Bytes
Versions: 42
Compression:
Stored size: 407 Bytes
Contents
class WcoEmail::ObfuscatedRedirectsController < WcoEmail::ApplicationController def show @obf = Office::ObfuscatedRedirect.find params[:id] # puts! @obf, '@obf' authorize! :show, @obf visit_time = Time.now @obf.update_attributes({ visited_at: visit_time, visits: @obf.visits + [ visit_time ], }) # render and return if DEBUG redirect_to @obf.to end end
Version data entries
42 entries across 42 versions & 1 rubygems