You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mixing up schema fields and custom methods in the export configuration we would like the csv to preserve the order of the columns as they were defined in the configuration.
When mixing up schema fields and custom methods in the export configuration we would like the csv to preserve the order of the columns as they were defined in the configuration.
But this line of code
@methods = [(schema[:only] || []) + (schema[:methods] || [])].flatten.compact
Is taking all schema fields first, then all methods and , so the order is messed up.
The workaround is to define columns as methods.
example:
should be as field like this
field :bank_name
redefined as custom method
The text was updated successfully, but these errors were encountered: