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
in case when A < ActiveRecord::Base and B < A has_settings doesn't work correct inside B.
Probably this is caused because target_type use base_class which will return A even if called inside B.
so _target_class will return wrong class and settings always will be nil.
I think overriding of target_type should solve problem, but I have not tested it well yet.
deftarget_typetarget.class.to_send
The text was updated successfully, but these errors were encountered:
in case when A < ActiveRecord::Base and B < A has_settings doesn't work correct inside B.
Probably this is caused because target_type use base_class which will return A even if called inside B.
so _target_class will return wrong class and settings always will be nil.
I think overriding of target_type should solve problem, but I have not tested it well yet.
The text was updated successfully, but these errors were encountered: