lib/avo/base_resource.rb in avo-2.1.2.pre2 vs lib/avo/base_resource.rb in avo-2.2.0

- old
+ new

@@ -41,10 +41,11 @@ class_attribute :ordering class_attribute :hide_from_global_search, default: false class_attribute :after_create_path, default: :show class_attribute :after_update_path, default: :show class_attribute :invalid_fields + class_attribute :record_selector, default: true class << self delegate :t, to: ::I18n def grid(&block) @@ -283,12 +284,9 @@ self.class.translation_key end def name - # return 'hwhwhw' - - default = class_name_without_resource.titlecase return @name if @name.present? return t(translation_key, count: 1, default: default).capitalize if translation_key