Sha256: b24cbaf1badb99bf1bcd0af34c203a42159529752ef217e5bb46b13ee05fd02f
Contents?: true
Size: 517 Bytes
Versions: 15
Compression:
Stored size: 517 Bytes
Contents
class Wepay::AuthorizeController < Wepay::ApplicationController def index ref_id = params[:refID] wepayable = wepayable_class.find(:conditions => ["#{wepayable_column} = ?", ref_id]) rescue => e raise AuthorizationError.new("WepayRails was unable to find the record to save the auth code to. : #{e.message}") unless wepayable.present? wepayable.update_attribute(wepayable_column.to_sym, params[:code]) redirect_to WepayRails::Configuration.settings[:after_authorize_redirect_uri] end end
Version data entries
15 entries across 15 versions & 1 rubygems