Skip to content

Commit

Permalink
Standardize
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 30, 2022
1 parent 8a82c32 commit f7dc550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/madmin/fields/nested_has_many.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Fields
class NestedHasMany < Field
DEFAULT_ATTRIBUTES = %w[_destroy id].freeze
def nested_attributes
resource.attributes.reject { |name, attribute| skipped_fields.include?(name) }
resource.attributes.except(*skipped_fields)
end

def resource
Expand Down

0 comments on commit f7dc550

Please sign in to comment.