{"action":"created","issue":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/315","labels_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/315/comments","events_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/315/events","html_url":"https://github.com/RubyMoney/money-rails/pull/315","id":69451304,"number":315,"title":"validator was looking for monetizable_attributes using a symbol key","user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-19T18:27:48Z","updated_at":"2015-04-19T19:14:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RubyMoney/money-rails/pulls/315","html_url":"https://github.com/RubyMoney/money-rails/pull/315","diff_url":"https://github.com/RubyMoney/money-rails/pull/315.diff","patch_url":"https://github.com/RubyMoney/money-rails/pull/315.patch"},"body":"The monetizable_attributes hash keys are all strings.  Asserted string key values in rspec and changed validator to look for a string key instead of symbol."},"comment":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/comments/94306028","html_url":"https://github.com/RubyMoney/money-rails/pull/315#issuecomment-94306028","issue_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/315","id":94306028,"user":{"login":"rosskevin","id":136564,"avatar_url":"https://avatars.githubusercontent.com/u/136564?v=3","gravatar_id":"","url":"https://api.github.com/users/rosskevin","html_url":"https://github.com/rosskevin","followers_url":"https://api.github.com/users/rosskevin/followers","following_url":"https://api.github.com/users/rosskevin/following{/other_user}","gists_url":"https://api.github.com/users/rosskevin/gists{/gist_id}","starred_url":"https://api.github.com/users/rosskevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosskevin/subscriptions","organizations_url":"https://api.github.com/users/rosskevin/orgs","repos_url":"https://api.github.com/users/rosskevin/repos","events_url":"https://api.github.com/users/rosskevin/events{/privacy}","received_events_url":"https://api.github.com/users/rosskevin/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T19:14:35Z","updated_at":"2015-04-19T19:14:35Z","body":"I jumped into the rake file and got a bundle install running, now I can at least run locally.\r\n\r\nMy test exposed what I think is cross-contamination of `monetized_attributes` when running a full suite.  I have a local change to compare both ways, but it appears to be missing `discount_price`.\r\n\r\n```\r\n1-[{\"special_price\"=>\"special_price_cents\",\r\n2xxxx-  \"discount_price\"=>\"discount\",\r\n3-  \"price\"=>\"price_cents\",\r\n4-  \"delivery_fee\"=>\"delivery_fee_cents\",\r\n5-  \"restock_fee\"=>\"restock_fee_cents\",\r\n6-  \"discount_value\"=>\"discount\",\r\n7-  \"optional_price\"=>\"optional_price_cents\",\r\n8-  \"bonus\"=>\"bonus_cents\",\r\n9-  \"sale_price\"=>\"sale_price_amount\",\r\n10-  \"price_in_a_range\"=>\"price_in_a_range_cents\",\r\n11-  \"skip_validation_price\"=>\"skip_validation_price_cents\",\r\n12-  \"lambda_price\"=>\"lambda_price_cents\",\r\n13-  \"accessor_price\"=>\"accessor_price_cents\",\r\n14-  \"validates_method_amount\"=>\"validates_method_amount_cents\",\r\n15-  \"renamed\"=>\"renamed_cents\",\r\n16-  \"reduced_price\"=>\"reduced_price_cents\"}]\r\n\r\n13+\"accessor_price\" => \"accessor_price_cents\",\r\n8+\"bonus\" => \"bonus_cents\",\r\n4+\"delivery_fee\" => \"delivery_fee_cents\",\r\n6+\"discount_value\" => \"discount\",\r\n12+\"lambda_price\" => \"lambda_price_cents\",\r\n7+\"optional_price\" => \"optional_price_cents\",\r\n3+\"price\" => \"price_cents\",\r\n10+\"price_in_a_range\" => \"price_in_a_range_cents\",\r\n16+\"reduced_price\" => \"reduced_price_cents\",\r\n15+\"renamed\" => \"renamed_cents\",\r\n5+\"restock_fee\" => \"restock_fee_cents\",\r\n9+\"sale_price\" => \"sale_price_amount\",\r\n11+\"skip_validation_price\" => \"skip_validation_price_cents\",\r\n1+\"special_price\" => \"special_price_cents\",\r\n14+\"validates_method_amount\" => \"validates_method_amount_cents\",\r\n```\r\n\r\n`discount_price` is later defined in existing class `SubProduct`, so I'll just isolate the class/test case and that should solve it."}}