Sha256: 3c8feadd39ae612630154d09228b5f3b5351a7908a53a49a5f869256a90a02f9

Contents?: true

Size: 250 Bytes

Versions: 78

Compression:

Stored size: 250 Bytes

Contents

class Customer < Struct.new(:name, :id)
  def to_param
    id.to_s
  end
end

class BadCustomer < Customer
end

class GoodCustomer < Customer
end

module Quiz
  class Question < Struct.new(:name, :id)
    def to_param
      id.to_s
    end
  end
end

Version data entries

78 entries across 77 versions & 18 rubygems

Version Path
ginst-2009.12.8 vendor/rails/actionpack/test/controller/fake_models.rb
actionpack-2.3.5 test/controller/fake_models.rb
ginst-2009.11.24 vendor/rails/actionpack/test/controller/fake_models.rb
ginst-2009.11.23 vendor/rails/actionpack/test/controller/fake_models.rb
ginst-2.0.1 vendor/rails/actionpack/test/controller/fake_models.rb
ginst-2.0.0 vendor/rails/actionpack/test/controller/fake_models.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/actionpack/test/controller/fake_models.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/actionpack/test/controller/fake_models.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/actionpack/test/controller/fake_models.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/actionpack/test/controller/fake_models.rb
gemstreamer-0.0.0 spec/assets/testapp/vendor/rails/actionpack/test/controller/fake_models.rb
radiant-rc-0.9.0 vendor/rails/actionpack/test/controller/fake_models.rb
webroar-0.2.2 src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb
radiant-0.8.1 vendor/rails/actionpack/test/controller/fake_models.rb
actionpack-2.3.4 test/controller/fake_models.rb
actionpack-2.3.3 test/controller/fake_models.rb
actionpack-2.3.2 test/controller/fake_models.rb
radiant-0.8.0 vendor/rails/actionpack/test/controller/fake_models.rb