Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Lint money.rb

Matthew Kennedy3c1b93e35f05
diff --git a/core/lib/spree/money.rb b/core/lib/spree/money.rb
index c9fb8f834e..816fc5d0fd 100644
--- a/core/lib/spree/money.rb
+++ b/core/lib/spree/money.rb
@@ -5,7 +5,7 @@ Money.rounding_mode = BigDecimal::ROUND_HALF_UP
module Spree
class Money
- class <<self
+ class << self
attr_accessor :default_formatting_rules
end
@@ -16,6 +16,7 @@ module Spree
}
attr_reader :money
+
delegate :cents, :currency, to: :money
def initialize(amount, options = {})