aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib/controller/fake_models.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-02-16 23:26:29 +0100
committerJosé Valim <jose.valim@gmail.com>2010-02-16 23:26:29 +0100
commitb1edd096626d6f536b87ff5e307c37a89dd78133 (patch)
tree10521b97477f883af2cad10cf992ec58ca6d68e6 /actionpack/test/lib/controller/fake_models.rb
parent47a236e291f0235a08ce4bb2a2d43fe221794461 (diff)
downloadrails-b1edd096626d6f536b87ff5e307c37a89dd78133.tar.gz
rails-b1edd096626d6f536b87ff5e307c37a89dd78133.tar.bz2
rails-b1edd096626d6f536b87ff5e307c37a89dd78133.zip
Ensure render :text => resource first tries to invoke :to_text on it
Diffstat (limited to 'actionpack/test/lib/controller/fake_models.rb')
-rw-r--r--actionpack/test/lib/controller/fake_models.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb
index 7346cb22bc..a8c86f70b6 100644
--- a/actionpack/test/lib/controller/fake_models.rb
+++ b/actionpack/test/lib/controller/fake_models.rb
@@ -21,6 +21,7 @@ class Customer < Struct.new(:name, :id)
def to_js(options={})
"name: #{name.inspect}"
end
+ alias :to_text :to_js
def errors
[]