Skip to content

Instantly share code, notes, and snippets.

@PetrKaleta
Created April 28, 2011 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetrKaleta/946712 to your computer and use it in GitHub Desktop.
Save PetrKaleta/946712 to your computer and use it in GitHub Desktop.
Macruby alias_method in module bug
class Base
module InstanceMethods
alias_method :model, :class
end
end
class Model
include Base::InstanceMethods
end
class Item < Model
end
puts Item.new.model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment