You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an instance of a subclass is created and none of the fields specific to that class are entered, the object cannot be queried
Situations where this is a problem
Some subclasses may only contain foreign key fields. For example, the Parent class in the prerequisites section could only contain the children field. This bug prevents the Parent class from being a persistable object.
Potential fix
I haven't really tested this and it is late for me, but this might work
Summary
When an instance of a subclass is created and none of the fields specific to that class are entered, the object cannot be queried
Situations where this is a problem
Some subclasses may only contain foreign key fields. For example, the Parent class in the prerequisites section could only contain the children field. This bug prevents the Parent class from being a persistable object.
Potential fix
I haven't really tested this and it is late for me, but this might work
Add this after line 153 of acts_as_cities.rb
Prerequisites
Suppose the following classes
Failure use-case
If you create a new parent object, but fail to set any attributes specific to the parent table, then It will not show up when queried
When you try to query for this item, it is inaccessible
returns
Working use-case
When you create an instance of a subclass and use one or more of the fields specific to that subclass you can query for it
returns
The text was updated successfully, but these errors were encountered: