{"action":"created","issue":{"url":"https://api.github.com/repos/radar/paranoia/issues/190","labels_url":"https://api.github.com/repos/radar/paranoia/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/radar/paranoia/issues/190/comments","events_url":"https://api.github.com/repos/radar/paranoia/issues/190/events","html_url":"https://github.com/radar/paranoia/issues/190","id":51182836,"number":190,"title":"2.0.3 table inheritance problem","user":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-06T13:39:05Z","updated_at":"2015-02-02T21:07:17Z","closed_at":null,"body":"Hi, i have a Postgresql Rails (Spree) app with:\r\n\r\n```ruby\r\nclass Price < ActiveRecord::Base\r\n  acts_as_paranoid\r\n  ...\r\n\r\nclass FlashSalePrice < Price\r\n  self.table_name = 'spree_flash_sale_prices'\r\n ...\r\n```\r\nUsing paranoia `2.0.3` i see invalid queries like:\r\n\r\n```sql\r\nSELECT \"spree_flash_sale_prices\".* FROM \"spree_flash_sale_prices\" WHERE \"spree_prices\".\"deleted_at\" IS NULL ...\r\n```\r\n\r\nso paranoia it's using the parent class table name. error:\r\n\r\n```PG::UndefinedTable: ERROR:  missing FROM-clause entry for table \"spree_prices\"```\r\n\r\nWith paranoia `2.0.2` it's fine:\r\n\r\n```sql\r\nSELECT \"spree_flash_sale_prices\".* FROM \"spree_flash_sale_prices\" WHERE \"spree_flash_sale_prices\".\"deleted_at\" IS NULL ...\r\n```\r\n\r\nI've taken a look but i'm not sure which 2.0.3 commit introduced this, ideas?\r\n\r\nThanks!!"},"comment":{"url":"https://api.github.com/repos/radar/paranoia/issues/comments/72537861","html_url":"https://github.com/radar/paranoia/issues/190#issuecomment-72537861","issue_url":"https://api.github.com/repos/radar/paranoia/issues/190","id":72537861,"user":{"login":"radar","id":2687,"avatar_url":"https://avatars.githubusercontent.com/u/2687?v=3","gravatar_id":"","url":"https://api.github.com/users/radar","html_url":"https://github.com/radar","followers_url":"https://api.github.com/users/radar/followers","following_url":"https://api.github.com/users/radar/following{/other_user}","gists_url":"https://api.github.com/users/radar/gists{/gist_id}","starred_url":"https://api.github.com/users/radar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radar/subscriptions","organizations_url":"https://api.github.com/users/radar/orgs","repos_url":"https://api.github.com/users/radar/repos","events_url":"https://api.github.com/users/radar/events{/privacy}","received_events_url":"https://api.github.com/users/radar/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T21:07:17Z","updated_at":"2015-02-02T21:07:17Z","body":"+1 comments are not useful at all. There isn't some magical tipping point where we go \"wow, it's crossed 25 +1s!! I better stop what I'm doing and work on this issue right now!\". There is no service contract.\r\n\r\nI mean, what do you hope to achieve by posting that? That we will somehow be inspired to work on this issue? This is not how open source works.\r\n\r\nOpen source works by us providing you with code that is fit for a particular purpose and doesn't guarantee at all that it will work for your particular purpose. (See: the LICENSE file)\r\n\r\n OSS works also when people outside of the core team are willing to dedicate some time to investigating and fixing the issues they encounter. Some good examples of this are found in Rails. \r\n\r\nCould you please spend some time investigating the cause of this issue, even if it is just providing us with an app which reproduces the problem concisely?\r\n\r\nOr if you're willing to sponsor my time to investigate this issue I'm sure I can find some spare time somewhere to see if it can be fixed.\r\n\r\nThanks.\r\n\r\n> On 3 Feb 2015, at 07:56, Trevor Hinesley <notifications@github.com> wrote:\r\n> \r\n> +1, need this resolved.\r\n> \r\n> —\r\n> Reply to this email directly or view it on GitHub.\r\n> "}}