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
I'm getting an error when I try to delete a record from my Users model (and almost the same one if I try to edit a record). The Users model includes the following:
I'm getting an error when I try to delete a record from my Users model (and almost the same one if I try to edit a record). The Users model includes the following:
has_many :user_tokens
has_many :invitees, :class_name => self.class.name, :as => :invited_by
has_many :messages, :dependent => :delete_all, :order => "created_at ASC"
has_many :alliances, :dependent => :delete_all
The error is:
undefined method `quoted_table_name' for Class:Class
With line 11 in _delete_notice.erb cited. Here is the extracted source:
10: <% @abstract_model.has_many_associations.each do |association| %>
11: <% object.send(association[:name]).reject{|child| child.nil?}.each do |child| %>
And here is the gist of the full trace: https://gist.github.com/1074184
I'm wondering whether this is a polymorphic issue, since there is no problem deleting records from Messages, for example.
Any help would be greatly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: