{"action":"created","comment":{"url":"https://api.github.com/repos/Dinuuu/regalar/pulls/comments/28568356","id":28568356,"diff_hunk":"@@ -28,4 +28,12 @@ def self.search(search)\n     find(:all, conditions:\n          ['lower(title) LIKE ? OR lower(description) LIKE ?', search_condition, search_condition])\n   end\n+\n+  def stop\n+    update_attribute(active, false)\n+  end\n+\n+  def resume\n+    update_attribute(active, true)","path":"app/models/wish_item.rb","position":23,"original_position":23,"commit_id":"5e4bb6afcf5e374d74d08a9784ae883ce61db853","original_commit_id":"5e4bb6afcf5e374d74d08a9784ae883ce61db853","user":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"body":"idem pero true","created_at":"2015-04-17T03:47:33Z","updated_at":"2015-04-17T03:47:33Z","html_url":"https://github.com/Dinuuu/regalar/pull/62#discussion_r28568356","pull_request_url":"https://api.github.com/repos/Dinuuu/regalar/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/comments/28568356"},"html":{"href":"https://github.com/Dinuuu/regalar/pull/62#discussion_r28568356"},"pull_request":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/Dinuuu/regalar/pulls/62","id":33115625,"html_url":"https://github.com/Dinuuu/regalar/pull/62","diff_url":"https://github.com/Dinuuu/regalar/pull/62.diff","patch_url":"https://github.com/Dinuuu/regalar/pull/62.patch","issue_url":"https://api.github.com/repos/Dinuuu/regalar/issues/62","number":62,"state":"open","locked":false,"title":"Cambios de wish_item","user":{"login":"vickymesalcorta","id":1123558,"avatar_url":"https://avatars.githubusercontent.com/u/1123558?v=3","gravatar_id":"","url":"https://api.github.com/users/vickymesalcorta","html_url":"https://github.com/vickymesalcorta","followers_url":"https://api.github.com/users/vickymesalcorta/followers","following_url":"https://api.github.com/users/vickymesalcorta/following{/other_user}","gists_url":"https://api.github.com/users/vickymesalcorta/gists{/gist_id}","starred_url":"https://api.github.com/users/vickymesalcorta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickymesalcorta/subscriptions","organizations_url":"https://api.github.com/users/vickymesalcorta/orgs","repos_url":"https://api.github.com/users/vickymesalcorta/repos","events_url":"https://api.github.com/users/vickymesalcorta/events{/privacy}","received_events_url":"https://api.github.com/users/vickymesalcorta/received_events","type":"User","site_admin":false},"body":"1) Agregue un boolean que indica si la campaña sigue activa o parada y los metodos para activarla y pararla.\r\n2) Agregue \"obtained\" q es un integer q va a indicar la cantidad obtenida de un wish_item, y el quantity de antes en vez de indicar la cantidad restante va a ser la cantidad inicial para poder hacer 25 deseados 10 obtenidos por ej...\r\n\r\nProblema: Cuando corro los tests pincha y me dice que \"obtained\" no es un metodo conocido y en otros tests que \"obtained\" no puede estar en blanco y q no es un numero ej:\r\n\r\nUserDonationsController#destroy When unlogged when a donation exists when canceling it should render login page\r\n     Failure/Error: let!(:wish_item) { create :wish_item, organization: organization }\r\n     ActiveRecord::RecordInvalid:\r\n       La validación falló: Obtained no puede estar en blanco, Obtained no es un número\r\n     # ./spec/controllers/user_donations_controller_spec.rb:6:in `block (2 levels) in <top (required)>'\r\n\r\n\r\nYa no se que mas hacer para encontrar ese bug, si puedes pullear y ver si es algo de migraciones o eso q no hice me harias un gran favor.\r\n- Agregue el add, puse el default 0 en el schema, en el helper tmb, puse en el permit del controller, y en el validate presence, ya no se que mas hacer\r\n","created_at":"2015-04-12T06:14:51Z","updated_at":"2015-04-17T03:47:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b57011b6787ba9cb2e38c8766a83f0f21ef176a","assignee":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Dinuuu/regalar/pulls/62/commits","review_comments_url":"https://api.github.com/repos/Dinuuu/regalar/pulls/62/comments","review_comment_url":"https://api.github.com/repos/Dinuuu/regalar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dinuuu/regalar/issues/62/comments","statuses_url":"https://api.github.com/repos/Dinuuu/regalar/statuses/5e4bb6afcf5e374d74d08a9784ae883ce61db853","head":{"label":"Dinuuu:organizationChanges","ref":"organizationChanges","sha":"5e4bb6afcf5e374d74d08a9784ae883ce61db853","user":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"repo":{"id":29102502,"name":"regalar","full_name":"Dinuuu/regalar","owner":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dinuuu/regalar","description":"Proyecto Final Ingeniería Informática ","fork":false,"url":"https://api.github.com/repos/Dinuuu/regalar","forks_url":"https://api.github.com/repos/Dinuuu/regalar/forks","keys_url":"https://api.github.com/repos/Dinuuu/regalar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dinuuu/regalar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dinuuu/regalar/teams","hooks_url":"https://api.github.com/repos/Dinuuu/regalar/hooks","issue_events_url":"https://api.github.com/repos/Dinuuu/regalar/issues/events{/number}","events_url":"https://api.github.com/repos/Dinuuu/regalar/events","assignees_url":"https://api.github.com/repos/Dinuuu/regalar/assignees{/user}","branches_url":"https://api.github.com/repos/Dinuuu/regalar/branches{/branch}","tags_url":"https://api.github.com/repos/Dinuuu/regalar/tags","blobs_url":"https://api.github.com/repos/Dinuuu/regalar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dinuuu/regalar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dinuuu/regalar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dinuuu/regalar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dinuuu/regalar/statuses/{sha}","languages_url":"https://api.github.com/repos/Dinuuu/regalar/languages","stargazers_url":"https://api.github.com/repos/Dinuuu/regalar/stargazers","contributors_url":"https://api.github.com/repos/Dinuuu/regalar/contributors","subscribers_url":"https://api.github.com/repos/Dinuuu/regalar/subscribers","subscription_url":"https://api.github.com/repos/Dinuuu/regalar/subscription","commits_url":"https://api.github.com/repos/Dinuuu/regalar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dinuuu/regalar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dinuuu/regalar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dinuuu/regalar/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dinuuu/regalar/contents/{+path}","compare_url":"https://api.github.com/repos/Dinuuu/regalar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dinuuu/regalar/merges","archive_url":"https://api.github.com/repos/Dinuuu/regalar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dinuuu/regalar/downloads","issues_url":"https://api.github.com/repos/Dinuuu/regalar/issues{/number}","pulls_url":"https://api.github.com/repos/Dinuuu/regalar/pulls{/number}","milestones_url":"https://api.github.com/repos/Dinuuu/regalar/milestones{/number}","notifications_url":"https://api.github.com/repos/Dinuuu/regalar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dinuuu/regalar/labels{/name}","releases_url":"https://api.github.com/repos/Dinuuu/regalar/releases{/id}","created_at":"2015-01-11T19:10:21Z","updated_at":"2015-04-06T03:38:31Z","pushed_at":"2015-04-12T06:15:53Z","git_url":"git://github.com/Dinuuu/regalar.git","ssh_url":"git@github.com:Dinuuu/regalar.git","clone_url":"https://github.com/Dinuuu/regalar.git","svn_url":"https://github.com/Dinuuu/regalar","homepage":null,"size":4476,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Dinuuu:master","ref":"master","sha":"c7833ed925af80646cd207f2cddc9b77dbd8020f","user":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"repo":{"id":29102502,"name":"regalar","full_name":"Dinuuu/regalar","owner":{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dinuuu/regalar","description":"Proyecto Final Ingeniería Informática ","fork":false,"url":"https://api.github.com/repos/Dinuuu/regalar","forks_url":"https://api.github.com/repos/Dinuuu/regalar/forks","keys_url":"https://api.github.com/repos/Dinuuu/regalar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dinuuu/regalar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dinuuu/regalar/teams","hooks_url":"https://api.github.com/repos/Dinuuu/regalar/hooks","issue_events_url":"https://api.github.com/repos/Dinuuu/regalar/issues/events{/number}","events_url":"https://api.github.com/repos/Dinuuu/regalar/events","assignees_url":"https://api.github.com/repos/Dinuuu/regalar/assignees{/user}","branches_url":"https://api.github.com/repos/Dinuuu/regalar/branches{/branch}","tags_url":"https://api.github.com/repos/Dinuuu/regalar/tags","blobs_url":"https://api.github.com/repos/Dinuuu/regalar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dinuuu/regalar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dinuuu/regalar/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dinuuu/regalar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dinuuu/regalar/statuses/{sha}","languages_url":"https://api.github.com/repos/Dinuuu/regalar/languages","stargazers_url":"https://api.github.com/repos/Dinuuu/regalar/stargazers","contributors_url":"https://api.github.com/repos/Dinuuu/regalar/contributors","subscribers_url":"https://api.github.com/repos/Dinuuu/regalar/subscribers","subscription_url":"https://api.github.com/repos/Dinuuu/regalar/subscription","commits_url":"https://api.github.com/repos/Dinuuu/regalar/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dinuuu/regalar/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dinuuu/regalar/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dinuuu/regalar/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dinuuu/regalar/contents/{+path}","compare_url":"https://api.github.com/repos/Dinuuu/regalar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dinuuu/regalar/merges","archive_url":"https://api.github.com/repos/Dinuuu/regalar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dinuuu/regalar/downloads","issues_url":"https://api.github.com/repos/Dinuuu/regalar/issues{/number}","pulls_url":"https://api.github.com/repos/Dinuuu/regalar/pulls{/number}","milestones_url":"https://api.github.com/repos/Dinuuu/regalar/milestones{/number}","notifications_url":"https://api.github.com/repos/Dinuuu/regalar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dinuuu/regalar/labels{/name}","releases_url":"https://api.github.com/repos/Dinuuu/regalar/releases{/id}","created_at":"2015-01-11T19:10:21Z","updated_at":"2015-04-06T03:38:31Z","pushed_at":"2015-04-12T06:15:53Z","git_url":"git://github.com/Dinuuu/regalar.git","ssh_url":"git@github.com:Dinuuu/regalar.git","clone_url":"https://github.com/Dinuuu/regalar.git","svn_url":"https://github.com/Dinuuu/regalar","homepage":null,"size":4476,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/62"},"html":{"href":"https://github.com/Dinuuu/regalar/pull/62"},"issue":{"href":"https://api.github.com/repos/Dinuuu/regalar/issues/62"},"comments":{"href":"https://api.github.com/repos/Dinuuu/regalar/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dinuuu/regalar/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/Dinuuu/regalar/statuses/5e4bb6afcf5e374d74d08a9784ae883ce61db853"}}}}