Skip to content

Instantly share code, notes, and snippets.

@cjbottaro
Created October 30, 2011 18:21
Show Gist options
  • Save cjbottaro/1326224 to your computer and use it in GitHub Desktop.
Save cjbottaro/1326224 to your computer and use it in GitHub Desktop.
Wish this worked
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