Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created February 2, 2010 01:21
Show Gist options
  • Save workmad3/292259 to your computer and use it in GitHub Desktop.
Save workmad3/292259 to your computer and use it in GitHub Desktop.
>> module ActiveRecord
>> class Base
>> end
>> end
=> nil
>> module ActiveRecord
>> class Error
>> def initialize
>> puts "AR::Error"
>> end
>> end
>> end
=> nil
>> class Error
>> def initialize
>> puts "::Error"
>> end
>> end
=> nil
>> class A < ActiveRecord::Base
>> def errors
>> Error.new
>> end
>> end
=> nil
>> A.new.errors
::Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment