Created
October 30, 2011 18:22
-
-
Save cjbottaro/1326226 to your computer and use it in GitHub Desktop.
No dice either
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 | |
def self.extended(object) | |
object.singleton_class.class_eval do | |
has_many :fun_ascents, :class_name => "Ascent" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NoMethodError: undefined method `association_class' for nil:NilClass