Model with self.abstract_class=true allows save method call

I think this is a bug.

I declared a model with self.abstract_class = true and then tried to
call save on it and it attempted the save. I think this should raise a
“method not allowed” exception of some sort.

Where is the Trac system that I would use to report this?

Thanks,
Wes

OK, so I was totally doing this to see if I could use an abstract model
and do validation on it even though there was no backing store.

As it turns out, you can. But…the save, create, or update will
generate an error. Which, of course you can ignore if you don’t use the
“bang” version of those methods.

Trying to decide if it’s worth it.

Obviously, I could store the model data, but this isn’t really something
that I need to store.

Wes

A better way to do this…

Just call model.valid? which will call the validators without attempting
to save the model object.

WG