for sale as well as hat samples we might sell. class Hat # Public: Adds a Hat to a Cart # Returns the Hat. def add_to(cart) … end # Public: Vote for a sample Hat # Returns True. def vote_yes(user) … end end the ruby
for sale as well as hat samples we might sell. class Hat belongs_to :votable_hat, class_name: :Hat # Public: Adds a Hat to a Cart # Returns the Hat def add_to(cart) … end # Public: Vote for a sample Hat def vote_yes(user) … end end
for sale as well as hat samples we might sell. class Hat belongs_to :votable_hat, class_name: :Hat # Public: Adds a Hat to a Cart # Returns the Hat def add_to(cart) … end # Public: Vote for a sample Hat def vote_yes(user) … end end