defines the accesors on the singelton class only

This commit is contained in:
Michael Mitchell 2013-03-25 15:52:51 -07:00 committed by Jessica Lynn Suttles
parent f4d5f31243
commit 309c0dfcd0

View file

@ -89,10 +89,10 @@ module Microformats2
def define_method(mn)
unless respond_to?(mn)
self.class.class_eval { attr_accessor mn }
self.singleton_class.class_eval { attr_accessor mn }
end
unless respond_to?(mn.pluralize)
self.class.class_eval { attr_accessor mn.pluralize }
self.singleton_class.class_eval { attr_accessor mn.pluralize }
end
end