app/helpers/agilibox/text_helper.rb in agilibox-1.5.10 vs app/helpers/agilibox/text_helper.rb in agilibox-1.5.11
- old
+ new
@@ -1,9 +1,17 @@
module Agilibox::TextHelper
include ::ActionView::Helpers::NumberHelper
include ::ActionView::Helpers::SanitizeHelper
include ::ActionView::Helpers::TextHelper
+ def nbsp(text = :no_argument)
+ if text == :no_argument
+ " "
+ else
+ text.to_s.gsub(" ", nbsp)
+ end
+ end
+
def euros(n)
currency(n, "€")
end
def currency(n, u)