Created
October 30, 2011 18:21
-
-
Save cjbottaro/1326224 to your computer and use it in GitHub Desktop.
Wish this worked
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 User::Ascents | |
extend ActiveSupport::Concern | |
included do | |
has_many :fun_ascents, :class_name => "Ascent" | |
end | |
def self.extended(object) | |
object.singleton_class.send(:include, self) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment