Skip to content

Commit

Permalink
[TE-7348] Correct method name
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-luong-goldenowl committed Sep 24, 2024
1 parent 384737d commit 6d15f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/support/csv_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(objects = [], schema = nil)
@model_config = @abstract_model.config
@methods = [(schema[:only] || []) + (schema[:methods] || [])].flatten.compact
@ordered_methods = @model_config.export.fields.filter { |field| @methods.include?(field.name) }.sort_by(&:order).map(&:name)
@fields = @ordered_methods.collect { |m| export_field_for(m).first }
@fields = @ordered_methods.collect { |m| export_field_for(m) }
@empty = ::I18n.t('admin.export.empty_value_for_associated_objects')
schema_include = schema.delete(:include) || {}

Expand Down

0 comments on commit 6d15f72

Please sign in to comment.