fix(coding-style): linting changes reverted to be consistent with existing style
This commit is contained in:
parent
30299a5f13
commit
53a11872ef
|
@ -31,7 +31,7 @@ class PaymentSerializer < ApplicationSerializer
|
||||||
def user
|
def user
|
||||||
begin
|
begin
|
||||||
User.find(object.user_id)
|
User.find(object.user_id)
|
||||||
rescue StandardError
|
rescue
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// TODO: typo in this helper name: currency not curency.
|
// TODO: typo in this helper name: currency not curency.
|
||||||
export default Ember.Helper.helper(function (params) {
|
export default Ember.Helper.helper(function(params) {
|
||||||
let currencySign
|
let currencySign;
|
||||||
|
|
||||||
switch (Discourse.SiteSettings.discourse_subscriptions_currency) {
|
switch (Discourse.SiteSettings.discourse_subscriptions_currency) {
|
||||||
case "EUR":
|
case "EUR":
|
||||||
|
@ -17,4 +17,4 @@ export default Ember.Helper.helper(function (params) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return [currencySign, params[0]].join("");
|
return [currencySign, params[0]].join("");
|
||||||
})
|
});
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
export default Ember.Helper.helper(function (params) {
|
export default Ember.Helper.helper(function(params) {
|
||||||
let currencySign
|
let currencySign;
|
||||||
|
|
||||||
switch (params[0]) {
|
switch (params[0]) {
|
||||||
case 'EUR':
|
case "EUR":
|
||||||
case 'eur':
|
case "eur":
|
||||||
currencySign = '€'
|
currencySign = "€";
|
||||||
break
|
break
|
||||||
case 'GBP':
|
case "GBP":
|
||||||
case 'gbp':
|
case "gbp":
|
||||||
currencySign = '£'
|
currencySign = "£";
|
||||||
break
|
break
|
||||||
case 'INR':
|
case "INR":
|
||||||
case 'inr':
|
case "inr":
|
||||||
currencySign = '₹'
|
currencySign = "₹";
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
currencySign = '$'
|
currencySign = "$";
|
||||||
}
|
}
|
||||||
|
|
||||||
return currencySign + params.map((p) => p.toUpperCase()).join(' ')
|
return currencySign + params.map(p => p.toUpperCase()).join(" ");
|
||||||
})
|
});
|
||||||
|
|
|
@ -18,7 +18,7 @@ plugins:
|
||||||
client: true
|
client: true
|
||||||
discourse_subscriptions_currency:
|
discourse_subscriptions_currency:
|
||||||
client: true
|
client: true
|
||||||
default: 'USD'
|
default: "USD"
|
||||||
type: enum
|
type: enum
|
||||||
choices:
|
choices:
|
||||||
- AUD
|
- AUD
|
||||||
|
|
Loading…
Reference in New Issue