Skip to content

Instantly share code, notes, and snippets.

@danahern
Forked from bruce/model-mixin-example.rb
Created March 4, 2009 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danahern/73922 to your computer and use it in GitHub Desktop.
Save danahern/73922 to your computer and use it in GitHub Desktop.
module UpillarCategorization
def self.included(base)
base.extend ClassMethods
base.instance_eval do
belongs_to :seller, :polymorphic => true
include InstanceMethods
end
end
module ClassMethods
end
module InstanceMethods
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment