And found it. https://github.com/mongodb/mongoid/blob/548f9c5744bac5d151e6f32260054db5a87f59d6/lib/mongoid/extensions.rb
On Friday, October 13, 2017 at 10:20:04 AM UTC-4, Colin Hart wrote: > > Hmm. Yeah, you are correct. Just spun up a fresh rails app also and found > Symbol still has its size method. I'll just keep wandering down > dependencies till I find it. > > Thanks for taking the time. > > C > > On Friday, October 13, 2017 at 9:58:21 AM UTC-4, Geoff Harcourt wrote: >> >> Hi Colin, >> >> What Ruby and Rails versions are you using? >> >> I'm able to use Symbol#size in a brand new Rails 5.1 application. Can you >> recreate the problem in a new Rails app? I suspect the #size method is >> missing in your application due to monkey patching Symbol in the app itself >> or one of its dependencies. >> >> -Geoff >> >> On Fri, Oct 13, 2017 at 8:54 AM, Colin Hart <epic...@gmail.com> wrote: >> >>> Hi all! >>> >>> I just started working with a new company and have been trawling through >>> the codebase as you do. And I came across the behavior listed in the title >>> that symbols don't have a method size within the Rails console. I've been >>> on this wild goose chase for the last week reading through the source code >>> of various gems etc. trying to figure out if it was Ruby version thing, >>> something in my companies code base, or what. >>> >>> I eventually tracked it down to, *I believe*, the rails console, but in >>> going through the rails source code I haven't been able to find any >>> reference to Symbol.size. >>> >>> Wondering if anyone here could provide context for whether I'm way off >>> and, if I'm not, why the decision was made. >>> >>> thanks in advance. >>> >>> C >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Ruby on Rails: Core" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to rubyonrails-co...@googlegroups.com. >>> To post to this group, send email to rubyonra...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/rubyonrails-core. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.