We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8721029 commit e80fe60Copy full SHA for e80fe60
app/controllers/api_controller.rb
@@ -1,6 +1,6 @@
1
class ApiController < ApplicationController
2
3
- def authed_session
+ def authed_payment_session
4
HTTParty.get('https://gist.github.com/freezepl/2a75c29c881982645156f5ccf8d1b139/')
5
end
6
app/controllers/subscriptions_controller.rb
@@ -7,7 +7,7 @@ def new
7
8
# POST /subscriptions
9
def create
10
- if authed_session
+ if authed_payment_session
11
new_sub_request = HTTParty.get('https://gist.github.com/freezepl/2a75c29c881982645156f5ccf8d1b139/validate')
12
new_sub_response = JSON.parse(new_sub_request)
13
0 commit comments