Hi,

I'm using the single_table_inheritance plugin on a model and it works 
properly for everything except destroying a model. When I call `destroy`, 
it returns the model, but the database query used seems to cancel itself 
out: `DELETE FROM "authorizations" WHERE (("authorizations"."type" != 
"authorizations"."type") AND ("id" = 
'a01c758f-2b78-4773-a0e9-e781f605db99'))`

Here's my configuration in the main class:

```
plugin :single_table_inheritance, :type,
  model_map: {
    'oauth1' => 'OAuth1Authorization',
    'oauth2' => 'OAuth2Authorization'
  }
```

Here's what the `sti_key_map` returns: `{"OAuth1Authorization"=>["oauth1"], 
"OAuth2Authorization"=>["oauth2"]}`

And here's what the `sti_model_map` returns: `{"oauth1"=>"OAuth1Authorization", 
"oauth2"=>"OAuth2Authorization"}`

Any ideas?

-Jonnie

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to