File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def stripe_config.api_key=(key)
79
79
end
80
80
end
81
81
82
- initializer 'stripe.javascript_helper' do
82
+ config . to_prepare do
83
83
ActiveSupport . on_load :action_controller do
84
84
# ActionController::API does not have a helper method
85
85
if respond_to? ( :helper )
Original file line number Diff line number Diff line change 4
4
i_suck_and_my_tests_are_order_dependent! # the default test must be run first!
5
5
6
6
# NOTE: skipped `stripe.plans_and_coupons` to prevent warnings about constants
7
- STRIPE_INITIALIZER_NAMES = %w{ stripe.configure.defaults stripe.configure stripe.callbacks.eager_load stripe.javascript_helper }
7
+ STRIPE_INITIALIZER_NAMES = %w{
8
+ stripe.configure.defaults
9
+ stripe.configure
10
+ stripe.callbacks.eager_load
11
+ }
8
12
9
13
let ( :app ) { Rails . application }
10
14
let ( :initializers ) { STRIPE_INITIALIZER_NAMES . map { |name | app . initializers . find { |ini | ini . name == name } } }
11
15
12
- def rerun_initializers! ; initializers . each { |init | init . run ( app ) } ; end
16
+ def rerun_initializers!
17
+ initializers . each { |init | init . run ( app ) }
18
+ end
13
19
14
20
after do
15
21
Stripe . api_version = nil
You can’t perform that action at this time.
0 commit comments