Permalink
Browse files

use RailsAdmin label method. Fix a bug with Mongoid

  • Loading branch information...
1 parent 31db6df commit 1545296bdaf63bf11458ea81ad2d9615b1846d22 @bbenezech bbenezech committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/rails_admin/main/export.html.haml
@@ -35,7 +35,7 @@
- list = associated_model_field.type != 'virtual' ? 'only' : 'methods'
%label.checkbox{:for => "schema_include_#{field.name}_#{list}_#{associated_model_field.name}"}
= check_box_tag "schema[include][#{field.name}][#{list}][]", associated_model_field.name, true, { :id => "schema_include_#{field.name}_#{list}_#{associated_model_field.name}" }
- = associated_model.human_attribute_name(associated_model_field.name)
+ = associated_model_field.label
%fieldset
%legend

0 comments on commit 1545296

Please sign in to comment.