Created
August 4, 2009 21:23
-
-
Save thoughtbot/161567 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Addressable | |
| def self.included(klazz) # klazz is that class object that @include@d this module | |
| klazz.class_eval do | |
| has_one :address | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment