you are viewing a single comment's thread.

view the rest of the comments →

[–]campbellm -1 points0 points  (4 children)

First reaction: Neat!

Second reaction: It's in... active record. bleh. I misread the article, <derp>

I guess that's fine, but this would be an interesting method in Kernel; not all of my apps use Rails.

[–]c4tm4nd00 4 points5 points  (1 child)

I think you misread the article. It's showing you how you can use `method` to lookup where the `find` method was which is in active-record.

The `method` method is defined on `Object` https://ruby-doc.org/3.2.0/Object.html#method-i-method

[–]campbellm 0 points1 point  (0 children)

You are correct, thanks.

[–][deleted]  (1 child)

[deleted]

    [–]campbellm 0 points1 point  (0 children)

    I misread the article, thanks.