{"action":"created","issue":{"url":"https://api.github.com/repos/vigetlabs/sprig/issues/50","labels_url":"https://api.github.com/repos/vigetlabs/sprig/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/vigetlabs/sprig/issues/50/comments","events_url":"https://api.github.com/repos/vigetlabs/sprig/issues/50/events","html_url":"https://github.com/vigetlabs/sprig/issues/50","id":53556986,"number":50,"title":"find_existing_by for CSV and Custom Parsers","user":{"login":"fny","id":346068,"avatar_url":"https://avatars.githubusercontent.com/u/346068?v=3","gravatar_id":"","url":"https://api.github.com/users/fny","html_url":"https://github.com/fny","followers_url":"https://api.github.com/users/fny/followers","following_url":"https://api.github.com/users/fny/following{/other_user}","gists_url":"https://api.github.com/users/fny/gists{/gist_id}","starred_url":"https://api.github.com/users/fny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fny/subscriptions","organizations_url":"https://api.github.com/users/fny/orgs","repos_url":"https://api.github.com/users/fny/repos","events_url":"https://api.github.com/users/fny/events{/privacy}","received_events_url":"https://api.github.com/users/fny/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-06T20:08:03Z","updated_at":"2015-01-20T18:20:49Z","closed_at":"2015-01-20T18:20:49Z","body":"Is there any way to set options directly per model for CSVs and custom parsers?"},"comment":{"url":"https://api.github.com/repos/vigetlabs/sprig/issues/comments/70704184","html_url":"https://github.com/vigetlabs/sprig/issues/50#issuecomment-70704184","issue_url":"https://api.github.com/repos/vigetlabs/sprig/issues/50","id":70704184,"user":{"login":"ltk","id":869491,"avatar_url":"https://avatars.githubusercontent.com/u/869491?v=3","gravatar_id":"","url":"https://api.github.com/users/ltk","html_url":"https://github.com/ltk","followers_url":"https://api.github.com/users/ltk/followers","following_url":"https://api.github.com/users/ltk/following{/other_user}","gists_url":"https://api.github.com/users/ltk/gists{/gist_id}","starred_url":"https://api.github.com/users/ltk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ltk/subscriptions","organizations_url":"https://api.github.com/users/ltk/orgs","repos_url":"https://api.github.com/users/ltk/repos","events_url":"https://api.github.com/users/ltk/events{/privacy}","received_events_url":"https://api.github.com/users/ltk/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T18:20:49Z","updated_at":"2015-01-20T18:20:49Z","body":"Turns out that this is already supported with a minor syntax tweak. Just omit the `:options` key:\r\n\r\n```ruby\r\nfanciness = {\r\n  :class            => User,\r\n  :source           => open('https://spreadsheets.google.com/feeds/list/somerandomtoken/1/public/values?alt=json'),\r\n  :parser           => Sprig::Data::Parser::GoogleSpreadsheetJson\r\n  :find_existing_by => :email\r\n}\r\n```\r\n\r\nSee https://github.com/vigetlabs/sprig/commit/8c96fb250c45b9a74d8db7c43558152db4ae39b6"}}