lib/avo/base_resource.rb in avo-3.0.0.pre17 vs lib/avo/base_resource.rb in avo-3.0.0.pre18

- old
+ new

@@ -174,22 +174,22 @@ def name default = class_name.underscore.humanize if translation_key - t(translation_key, count: 1, default: default).capitalize + t(translation_key, count: 1, default: default).humanize else default end end alias_method :singular_name, :name def plural_name default = name.pluralize if translation_key - t(translation_key, count: 2, default: default).capitalize + t(translation_key, count: 2, default: default).humanize else default end end @@ -318,10 +318,10 @@ when :show record_title when :edit record_title when :new - t("avo.create_new_item", item: name.downcase).upcase_first + t("avo.create_new_item", item: name.humanize(capitalize: false)).upcase_first end end # Returns the model class being used for this resource. #