This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str = "this is a template string with a %{placeholder} in it" | |
puts str % { "placeholder": "piece of text" } | |
# => this is a template string with a piece of text in it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helpButton.on("click", event => { | |
chan.push("help_needed", {}) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts DATA.gets | |
__END__ | |
Hello Mr. World! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/models/shipping/commodity.rb b/app/models/shipping/commodity.rb | |
index ae7b51bc..1cdcf3f7 100644 | |
--- a/app/models/shipping/commodity.rb | |
+++ b/app/models/shipping/commodity.rb | |
@@ -2,10 +2,13 @@ module Shipping | |
class Commodity < ApplicationRecord | |
belongs_to :shipments | |
+ monetize :sales_unit_price_cents | |
+ monetize :total_price_cents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/models/shipping/commodity.rb b/app/models/shipping/commodity.rb | |
index ae7b51bc..1cdcf3f7 100644 | |
--- a/app/models/shipping/commodity.rb | |
+++ b/app/models/shipping/commodity.rb | |
@@ -2,10 +2,13 @@ module Shipping | |
class Commodity < ApplicationRecord | |
belongs_to :shipments | |
+ monetize :sales_unit_price_cents | |
+ monetize :total_price_cents |
OlderNewer