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

Version Path
wco_email-0.1.1.42 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.41 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.40 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.39 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.38 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.37 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.36 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.35 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.34 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.33 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.32 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.31 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.30 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.29 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.28 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.27 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.26 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.25 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.24 app/controllers/wco_email/obfuscated_redirects_controller.rb
wco_email-0.1.1.23 app/controllers/wco_email/obfuscated_redirects_controller.rb