• Lin Jen-Shin's avatar
    Work around a weird Rails constant loading behaviour · 9cff2897
    Lin Jen-Shin authored
    This can be demonstrated as the following:
    
        EE.const_get('API::Appearance', false) # => Appearance
        EE.const_get('API::Appearance', false) # => raise NameError
    
    Getting a NameError is what we're expecting here, because
    EE::API::Appearance doesn't exist.
    9cff2897
appearance.rb 2.27 KB