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 <epicur...@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-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.
>

-- 
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.

Reply via email to