test/dummy/app/models/cart.rb in disco_app-0.13.4 vs test/dummy/app/models/cart.rb in disco_app-0.13.5

- old
+ new

@@ -6,19 +6,19 @@ SHOPIFY_API_CLASS = ShopifyAPI::Cart before_save :set_token def self.synchronise_by(shop, data) - { token: data['token'] } + { token: data[:token] } end def total_price - data['line_items'].map { |line_item| line_item['line_price'].to_f }.sum + data[:line_items].map { |line_item| line_item[:line_price].to_f }.sum end private def set_token - self.token = data['token'] + self.token = data[:token] end end