search for: attr_unsearchable

Displaying 1 result from an estimated 1 matches for "attr_unsearchable".

2010 Sep 08
1
Unintended side-effect from before_remove_const?
...ase implements before_remove_const to do a bit of scoped method cleanup... It''s the only thing I can see that might cause the problem, which is: When accessing an AR::Base subclass via a reflection''s klass accessor, it seems as though class_attributes which are set up via macros (attr_unsearchable in the MetaSearch case, but I also checked with attr_protected) do not have their values. Commenting that single line: constantize(const).before_remove_const if constantize(const).respond_to?(:before_remove_const) will cause the failures to come and go at will, but removing the only before_remov...