I can't delegate to it in class methods if it's outside of the `class <<
self` block.


On Tue, May 20, 2014 at 11:51 AM, Eugene Gilburg
<notifications@github.com>wrote:

> In activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:
>
> > @@ -317,23 +317,17 @@ def cast_value(value)
> >            end
> >          end
> >
> > -        TYPES = {}
> > +        class << self
> > +          TYPES = ConnectionAdapters::Type::HashLookupTypeMap.new
>
> is there a difference between putting a constant inside or outside the class
> << self block?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rails/rails/pull/15200/files#r12861268>
> .
>



-- 

Thanks,
Sean Griffin