lib/avo/resources/controls/edit_button.rb in avo-3.0.0.pre17 vs lib/avo/resources/controls/edit_button.rb in avo-3.0.0.pre18
- old
+ new
@@ -5,10 +5,10 @@
def initialize(**args)
super(**args)
@label = args[:label] || I18n.t("avo.edit").capitalize
if args[:item].present?
- @title = I18n.t("avo.edit_item", item: args[:item]).capitalize if title.nil?
+ @title = I18n.t("avo.edit_item", item: args[:item]).humanize if title.nil?
end
end
end
end
end