Skip to content

Instantly share code, notes, and snippets.

@cjbottaro
Created October 30, 2011 18:22
Show Gist options
  • Save cjbottaro/1326226 to your computer and use it in GitHub Desktop.
Save cjbottaro/1326226 to your computer and use it in GitHub Desktop.
No dice either
module User::Ascents
def self.extended(object)
object.singleton_class.class_eval do
has_many :fun_ascents, :class_name => "Ascent"
end
end
end
@cjbottaro
Copy link
Author

NoMethodError: undefined method `association_class' for nil:NilClass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment