lib/platformx/text.rb in platformx-0.0.6 vs lib/platformx/text.rb in platformx-0.0.7
- old
+ new
@@ -10,10 +10,10 @@
def x_slug(slug: "")
return slug.slugify
end
#x_boolean_label
-def x_boolean_label(value: "")
+def x_boolean_label(value: "", type: "text")
if !value.nil? && value == true
str = "Yes"
else
str = "No"
\ No newline at end of file