~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/actionpack/test/controller/fake_models.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class Customer < Struct.new(:name, :id)
2
 
  def to_param
3
 
    id.to_s
4
 
  end
5
 
end
6
 
 
7
 
class BadCustomer < Customer
8
 
end
9
 
 
10
 
class GoodCustomer < Customer
11
 
end
12
 
 
13
 
module Quiz
14
 
  class Question < Struct.new(:name, :id)
15
 
    def to_param
16
 
      id.to_s
17
 
    end
18
 
  end
19
 
end