aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/fake_models.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-07-17 09:44:03 +0000
committerMichael Koziarski <michael@koziarski.com>2007-07-17 09:44:03 +0000
commitb549366216f6cb607bf06c19701912a2e0d1f77c (patch)
tree1500622d360a50c98396347fd4e54db8ebba4d39 /actionpack/test/controller/fake_models.rb
parent872c5f4380ca348ff9ed19963e827289fb831fdf (diff)
downloadrails-b549366216f6cb607bf06c19701912a2e0d1f77c.tar.gz
rails-b549366216f6cb607bf06c19701912a2e0d1f77c.tar.bz2
rails-b549366216f6cb607bf06c19701912a2e0d1f77c.zip
Introduce fake_models.rb to avoid platform-specific code. [mpalmer] Closes #8714
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/fake_models.rb')
-rw-r--r--actionpack/test/controller/fake_models.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/fake_models.rb b/actionpack/test/controller/fake_models.rb
new file mode 100644
index 0000000000..2761b09f2f
--- /dev/null
+++ b/actionpack/test/controller/fake_models.rb
@@ -0,0 +1,5 @@
+class Customer < Struct.new(:name, :id)
+ def to_param
+ id.to_s
+ end
+end