Displaying 1 result from an estimated 1 matches for "mark_for_destruct".
2009 Apr 09
1
method_exists? is missing?
In a controller run through webrick I do this:
@entity = Entity.new
print @entity.methods.sort.to_yaml
and I see this:
- logger
- mark_for_destruction
- marked_for_destruction?
- metaclass
- method
- method_missing
- methods
- new_record?
There is no method_exists? method. If I instead do this in a console
session, I see this:
$ script/console
>>
>> @entity = Entity.new
=> ...
>> print @entity.methods.sort.to_yaml
......