Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ensure log gets injected in module.
Since we replaced the alert with a log if no payment methods have been configured in Spree, we'll need to ensure that the log is injected in this module in order for it to run smoothly.
  • Loading branch information
nancynaluz
nancynaluz committed Dec 22, 2016
commit f01f25c03943a1d4679f9da5485a71051f6ec6fc
2 changes: 1 addition & 1 deletion app/assets/javascripts/sprangular/module.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ window.Sprangular = angular.module('Sprangular', [
'mgcrea.ngStrap'
'angularytics'
'pascalprecht.translate'
]).run (Env) ->
]).run (Env, $log) ->
paymentMethods = Env.config.payment_methods

if paymentMethods.length == 0
Expand Down