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
radiantcms-couchrest_model-0.1.2 vendor/rails/actionpack/test/controller/fake_models.rb
radiantcms-couchrest_model-0.1.1 vendor/rails/actionpack/test/controller/fake_models.rb
radiantcms-couchrest_model-0.1 vendor/rails/actionpack/test/controller/fake_models.rb
actionpack-2.3.10 test/controller/fake_models.rb
actionpack-2.3.9 test/controller/fake_models.rb
actionpack-2.3.9.pre test/controller/fake_models.rb
webroar-0.4.0 src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb
erubis_rails_helper-1.0.0 test/controller/fake_models.rb
radiant-0.9.1 vendor/rails/actionpack/test/controller/fake_models.rb
actionpack-2.3.8 test/controller/fake_models.rb
actionpack-2.3.8.pre1 test/controller/fake_models.rb
actionpack-2.3.7 test/controller/fake_models.rb
actionpack-2.3.6 test/controller/fake_models.rb
radiant-0.8.2 vendor/rails/actionpack/test/controller/fake_models.rb
radiant-0.9.0.rc2 vendor/rails/actionpack/test/controller/fake_models.rb
webroar-0.3.1 src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb
webroar-0.3.0 src/admin_panel/vendor/rails/actionpack/test/controller/fake_models.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/actionpack/pkg/actionpack-2.3.3/test/controller/fake_models.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/actionpack/test/controller/fake_models.rb
ghazel-erubis_rails_helper-0.9.5.1 test/controller/fake_models.rb