diff options
author | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-17 19:32:31 -0400 |
---|---|---|
committer | Josh Kalderimis <josh.kalderimis@gmail.com> | 2011-05-18 00:34:09 -0400 |
commit | b641ab5baec0956c0135e7341ca238eff3f9d5a5 (patch) | |
tree | fd8ff59ad692fab3101a125854f95a84041945ca /activeresource/examples/simple.rb | |
parent | 6b4bbb427455ec1af6bdf0896a62129bd3c8c4aa (diff) | |
download | rails-b641ab5baec0956c0135e7341ca238eff3f9d5a5.tar.gz rails-b641ab5baec0956c0135e7341ca238eff3f9d5a5.tar.bz2 rails-b641ab5baec0956c0135e7341ca238eff3f9d5a5.zip |
removed a contrived ARes example
Diffstat (limited to 'activeresource/examples/simple.rb')
-rw-r--r-- | activeresource/examples/simple.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activeresource/examples/simple.rb b/activeresource/examples/simple.rb deleted file mode 100644 index 6d2c6e3b1b..0000000000 --- a/activeresource/examples/simple.rb +++ /dev/null @@ -1,15 +0,0 @@ -$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" -require 'active_resource' -require 'active_support/core_ext/hash/conversions' - -ActiveSupport::XmlMini.backend = ENV['XMLMINI'] || 'REXML' -ActiveResource::HttpMock.respond_to do |mock| - mock.get '/people/1.xml', {}, { :id => 1, :name => 'bob' }.to_xml(:root => 'person') -end - -class Person < ActiveResource::Base - self.site = 'http://localhost/' -end - -bob = Person.find(1) -puts bob.inspect |