mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-07-08 15:22:46 +00:00
Merge pull request #2 from angusmcleod/suggested_improvements
Include stripe_js && inherit from the application controller
This commit is contained in:
commit
a2fac9a4ff
@ -1,11 +1,7 @@
|
|||||||
require_dependency 'discourse'
|
require_dependency 'discourse'
|
||||||
|
|
||||||
module DiscourseDonations
|
module DiscourseDonations
|
||||||
class ChargesController < ActionController::Base
|
class ChargesController < ApplicationController
|
||||||
include CurrentUser
|
|
||||||
|
|
||||||
protect_from_forgery prepend: true
|
|
||||||
protect_from_forgery with: :exception
|
|
||||||
|
|
||||||
skip_before_action :verify_authenticity_token, only: [:create]
|
skip_before_action :verify_authenticity_token, only: [:create]
|
||||||
|
|
||||||
|
@ -1,11 +1,7 @@
|
|||||||
require_dependency 'discourse'
|
require_dependency 'discourse'
|
||||||
|
|
||||||
module DiscourseDonations
|
module DiscourseDonations
|
||||||
class CheckoutController < ActionController::Base
|
class CheckoutController < ApplicationController
|
||||||
include CurrentUser
|
|
||||||
|
|
||||||
protect_from_forgery prepend: true
|
|
||||||
protect_from_forgery with: :exception
|
|
||||||
|
|
||||||
skip_before_action :verify_authenticity_token, only: [:create]
|
skip_before_action :verify_authenticity_token, only: [:create]
|
||||||
|
|
||||||
|
1
assets/javascripts/lib/vendor/stripe_v3.js
vendored
Normal file
1
assets/javascripts/lib/vendor/stripe_v3.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -9,6 +9,7 @@ gem 'stripe', '2.8.0'
|
|||||||
load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__)
|
load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__)
|
||||||
|
|
||||||
register_asset "stylesheets/discourse-donations.css"
|
register_asset "stylesheets/discourse-donations.css"
|
||||||
|
register_asset "javascripts/lib/vendor/stripe_v3.js"
|
||||||
|
|
||||||
enabled_site_setting :discourse_donations_enabled
|
enabled_site_setting :discourse_donations_enabled
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user