diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1d6119d..d89a3b6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -778,7 +778,7 @@ module ApplicationHelper (field_helpers - %w(hidden_field)).each do |selector| src = <<-END_SRC def #{selector}(field, *args, &proc) - text = object.class.human_attribute_name(field.to_s) + text = object.class.respond_to?(:human_attribute_name) && object.class.human_attribute_name(field.to_s) || field.to_s.humanize NoosferoFormBuilder::output_field(text, super) end END_SRC -- libgit2 0.21.2