Skip to content

Commit

Permalink
Merge pull request #17 from Papercloud/fix/scoped-collection-finder
Browse files Browse the repository at this point in the history
Changes `existing_row_resource` to find an existing resource based on…
  • Loading branch information
antonivanopoulos committed Mar 4, 2016
2 parents 2b024a6 + d7c5991 commit 9091c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin_csv_import/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def existing_row_resource(lookup_column, params)
value = params[lookup_column]
return unless value.present?

active_admin_config.resource_class.send(finder_method, value)
scoped_collection.send(finder_method, value)
end
end
end
Expand Down

0 comments on commit 9091c50

Please sign in to comment.