Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1c4d28ba31
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.312 kb
class Customer < Struct.new(:name, :id)
extend ActiveModel::Naming
def to_param
id.to_s
end
end
class BadCustomer < Customer
end
class GoodCustomer < Customer
end
module Quiz
class Question < Struct.new(:name, :id)
extend ActiveModel::Naming
def to_param
id.to_s
end
end
end
Jump to Line
Something went wrong with that request. Please try again.