{"action":"created","issue":{"url":"https://api.github.com/repos/BKWLD/croppa/issues/106","labels_url":"https://api.github.com/repos/BKWLD/croppa/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/BKWLD/croppa/issues/106/comments","events_url":"https://api.github.com/repos/BKWLD/croppa/issues/106/events","html_url":"https://github.com/BKWLD/croppa/issues/106","id":107809852,"number":106,"title":"Using Croppa::url inside a model","user":{"login":"harpster604","id":671838,"avatar_url":"https://avatars.githubusercontent.com/u/671838?v=3","gravatar_id":"","url":"https://api.github.com/users/harpster604","html_url":"https://github.com/harpster604","followers_url":"https://api.github.com/users/harpster604/followers","following_url":"https://api.github.com/users/harpster604/following{/other_user}","gists_url":"https://api.github.com/users/harpster604/gists{/gist_id}","starred_url":"https://api.github.com/users/harpster604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harpster604/subscriptions","organizations_url":"https://api.github.com/users/harpster604/orgs","repos_url":"https://api.github.com/users/harpster604/repos","events_url":"https://api.github.com/users/harpster604/events{/privacy}","received_events_url":"https://api.github.com/users/harpster604/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T21:49:43Z","updated_at":"2015-09-22T22:01:19Z","closed_at":"2015-09-22T22:01:19Z","body":"Is it possible to use Croppa to generate a URL/image inside a model? I have an accessor method in my model that generates the URL path for an image. I want Croppa to modify this URL to a thumbnail and return that instead but I get \"Class 'Bkwld\\Croppa' not found\" even when I have \"use Bkwld\\Croppa;\" added at the top.\r\n\r\nIt works fine when used in a view or controller."},"comment":{"url":"https://api.github.com/repos/BKWLD/croppa/issues/comments/142434643","html_url":"https://github.com/BKWLD/croppa/issues/106#issuecomment-142434643","issue_url":"https://api.github.com/repos/BKWLD/croppa/issues/106","id":142434643,"user":{"login":"harpster604","id":671838,"avatar_url":"https://avatars.githubusercontent.com/u/671838?v=3","gravatar_id":"","url":"https://api.github.com/users/harpster604","html_url":"https://github.com/harpster604","followers_url":"https://api.github.com/users/harpster604/followers","following_url":"https://api.github.com/users/harpster604/following{/other_user}","gists_url":"https://api.github.com/users/harpster604/gists{/gist_id}","starred_url":"https://api.github.com/users/harpster604/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harpster604/subscriptions","organizations_url":"https://api.github.com/users/harpster604/orgs","repos_url":"https://api.github.com/users/harpster604/repos","events_url":"https://api.github.com/users/harpster604/events{/privacy}","received_events_url":"https://api.github.com/users/harpster604/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T22:01:19Z","updated_at":"2015-09-22T22:01:19Z","body":"Never mind. 'use Croppa;' works instead of the full path since it's added to my app.php already."}}