aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/http_mock.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-09-04 10:04:23 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-09-04 10:04:23 +0000
commitc918fbf14b96319412cb6195e7a8a3229613340c (patch)
treeaa3f86f93ce445cb5dd75d312bf5ae75457062e5 /activeresource/test/http_mock.rb
parentc003a4acea24aad279b8cd6eec49e20bc45859f3 (diff)
downloadrails-c918fbf14b96319412cb6195e7a8a3229613340c.tar.gz
rails-c918fbf14b96319412cb6195e7a8a3229613340c.tar.bz2
rails-c918fbf14b96319412cb6195e7a8a3229613340c.zip
Deep hashes are converted into collections of resources. Class attribute writer methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/test/http_mock.rb')
-rw-r--r--activeresource/test/http_mock.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/activeresource/test/http_mock.rb b/activeresource/test/http_mock.rb
index 75a54e71fe..40921f6b6b 100644
--- a/activeresource/test/http_mock.rb
+++ b/activeresource/test/http_mock.rb
@@ -101,8 +101,10 @@ module ActiveResource
class Connection
private
- def http
- @http ||= HttpMock.new(@site)
+ silence_warnings do
+ def http
+ @http ||= HttpMock.new(@site)
+ end
end
end
-end \ No newline at end of file
+end