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 ... - logger - mark_for_destruction - marked_for_destruction? - metaclass - method - method_exists? - method_missing - methods - mocha - mocha_inspect - new_record? ... However, if I remove the mocha gem (0.9.5) then method_exists? disappears from Entities created in the console as well. So, what gives? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---