Skip to content

Instantly share code, notes, and snippets.

View danahern's full-sized avatar

Dan Ahern danahern

View GitHub Profile
module UpillarCategorization
def self.included(base)
base.extend ClassMethods
base.instance_eval do
belongs_to :seller, :polymorphic => true
include InstanceMethods
end
end
module ClassMethods