Taryn East
f4f68885ef
update_attribute(s) added to Active Resource
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-10-02 10:13:01 -05:00
Jeremy Kemper
b5dd1b6599
Fix brittle content-type check. [ #1956 state:committed]
2009-09-17 11:34:40 -07:00
Joshua Peek
59d1b23ea1
Fix failing ARes isolated tests
2009-09-05 19:24:43 -05:00
taryn
ce61a6bd55
Added first/last/all aliases for equivalent find scopes
...
Just a copy from Active Record (with tests). Each is a warpper function for
the equivalent scoped call to find eg first is a wrapper for find(:first)
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-21 14:49:59 -05:00
taryn
328ba3b333
Added save! which raises ResourceInvalid unless valid?
...
Similar to Active Record - it will raise ActiveResouce::ResourceInvalid if
the resource is not valid (ie if <tt>valid?</tt> returns false)
However - does not raise ActiveResource::ResourceNotFound if the callbacks
fail (callbacks have not yet been implemented) - it will just try to save
and raise if the callbacks all fail.
This is not ideal behaviour - but will do until we decide to change the
behaviour of save_with_validations to actually raise (rather than catch) the
ResourceInvalid exception.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:05:02 -05:00
taryn
4dc05bc8a9
Swallow ResourceNotFound error on find_every
...
Active Record does not explode with RecordNotFound if you go looking for a
collection of objects - it just returns nil. Thus Active Resource should
also not explode.
After all - finding no objects that match a set of conditions is not
exceptional behaviour - unlike looking for a specific object with a given id
(which you'd expect to exist).
I've also added documentation to +find+ to reflect this.
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:04:48 -05:00
taryn
079ed8fc43
Pulled find-based tests into their own test case. This matches Active Record, and allows us to have one places where all find-tests are located, which will help when adding dynamic finders later.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:04:14 -05:00
taryn
36bf587347
Moved all test cases into a new test/cases directory to match Active Record test directory structure.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:03:57 -05:00
taryn
c2f90d6530
Added validations to ActiveResource. Added a smoke test to see if we can add a validation and use it, and add a validates callback and use it.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-08-19 09:03:17 -05:00
Jatinder Singh
a363dba790
Fix ActiveResource load test for 64bit machines [ #3051 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-15 20:29:37 +01:00
Fabien Jakimowicz
797588543e
Add support for errors in JSON format.
...
[#1956 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-09 22:40:20 -07:00
Grzegorz Forysinski
e391c7a97c
Ensure ActiveResource#load works with numeric arrays [Grzegorz Forysinski, Elad Meidar]
...
[#2305 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-09 23:39:38 +01:00
Jordan Brough
916b18adeb
Active Resource recognizes 410 as Resource Gone now [ #2316 state:resolved] [Jordan Brough, Jatinder Singh]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-09 22:56:32 +01:00
Jatinder Singh
1fc1986d6d
Make ActiveResource#exists? work [ #3020 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-08-09 22:24:57 +01:00
Roy Nicholson
3e0951632c
Add ability to set SSL options on ARes connections.
...
[#2370 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-09 13:24:05 -07:00
Jeremy Kemper
a0caad5255
Setting connection timeout also affects Net::HTTP open_timeout.
...
[#2947 state:resolved]
2009-08-09 02:28:00 -07:00
Marshall Huss
4d1552810f
HTTP proxy support
...
[#2133 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-08-08 15:33:55 -07:00
Joshua Peek
c863388039
Add observing hooks to ARes
2009-07-11 16:59:11 -05:00
Yehuda Katz + Carl Lerche
7583a24ee0
Move mocha down below initial T::U require and bump version to 0.9.7 [ #2858 state:resolved]
2009-07-01 11:53:17 -07:00
Joshua Peek
0b694a4ff4
Setup ActiveResource autoloads
2009-06-08 20:48:14 -05:00
Joshua Peek
69742ca8fa
Merge branch 'master' into active_model
...
Conflicts:
activemodel/lib/active_model/core.rb
activemodel/test/cases/state_machine/event_test.rb
activemodel/test/cases/state_machine/state_transition_test.rb
activerecord/lib/active_record/validations.rb
activerecord/test/cases/validations/i18n_validation_test.rb
activeresource/lib/active_resource.rb
activeresource/test/abstract_unit.rb
2009-05-29 16:06:21 -05:00
Jeremy Kemper
e8550ee032
Cherry-pick core extensions
2009-05-13 12:00:15 -07:00
Jeremy Kemper
201d8b1755
Fix tests on 1.8.6
2009-05-06 12:19:30 -07:00
Jeremy Kemper
6d4a4fabbb
Cherry pick Active Support dependencies. Autoload.
2009-05-06 00:14:55 -07:00
Pratik Naik
320933205e
Deprecate Errors#on_base/add_to_base/invalid?/each_full
2009-03-21 18:34:05 +00:00
Pratik Naik
09afbfd47f
Fix ActiveResource::Errors deprecation messages
2009-03-20 18:51:01 +00:00
Pratik Naik
77acfefedf
Make Active Resource use ActiveModel::Errors
2009-03-19 23:45:08 +00:00
Jeremy Kemper
cfde60575a
Strip invalid leading whitespace error uncovered by nokogiri
2009-03-10 22:17:05 -07:00
Jeremy Kemper
1c36172c13
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
...
[#1617 state:resolved]
2009-03-08 13:11:58 -07:00
Jeremy Kemper
0c407891fb
Ensure Active Support is loaded locally rather than from RubyGems. [ #1620 state:committed]
2009-03-08 11:04:23 -07:00
Jeremy Kemper
f7d509882e
Prefer tap to returning
2009-02-06 12:18:24 -08:00
Jeremy Kemper
b302e023b7
Require rubygems
2009-02-03 18:58:06 -08:00
Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Bob Aman
166c63818e
Improve exception handling when Location header is invalid. [ #1192 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-01-28 20:56:46 +00:00
Rasik Pandey
6079ec1f77
ActiveResource#eqls? and == should not take into account object identity and prefix options should be considered. [ #1098 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2009-01-28 19:39:06 +00:00
Jeremy Kemper
c79fb32e93
Ruby 1.9 compat: don't shadow local var with block arg
2008-11-22 19:19:13 -08:00
Jeremy Kemper
dc07c0e02b
Fix indentation mismatches
2008-11-22 19:19:13 -08:00
Jeremy Kemper
ebf14baa0e
Silence parens warning
2008-11-07 15:41:27 -05:00
David Heinemeier Hansson
dffc2e2b64
Fixed that ActiveResource#post would post an empty string when it shouldn't be posting anything (Paolo Angelini) [ #525 state:committed]
2008-10-30 12:47:23 +01:00
Cody Fauser
f2c10f2756
Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. [ #1011 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-10-07 17:48:02 +01:00
Matthew Moore
4df45d8609
ActiveResource can load array of strings, like serialize :bar, Array
...
Signed-off-by: rick <technoweenie@gmail.com>
[#1055 state:resolved]
2008-10-05 10:29:13 -07:00
Edgar J. Suarez
790ebf8eab
HTTP Accept header
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-09-18 11:15:48 +02:00
Jeremy Kemper
a1eb4e11c2
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Conflicts:
actionpack/test/controller/layout_test.rb
2008-08-31 13:20:15 -07:00
Rasik Pandey
16b9a554db
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [ #450 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2008-08-29 18:45:39 -07:00
Tarmo Tänav
b5c4c7daf8
Clear prefix_parameters cache when setting prefix
2008-08-23 17:43:52 +03:00
Adrian Mugnolo
893fb5bb63
Add ActiveResource::Base.find(:last). [ #754 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-08-22 03:06:57 +01:00
Joshua Peek
b74b97fef5
Update uses_mocha in ActionMailer and ActiveResource
2008-07-19 11:14:12 -05:00
Luis Hurtado
225065709c
Fixes parsing deep nested resources from XML. [ #380 state:resolved]
2008-06-09 23:06:07 -07:00
Cheah Chu Yeow
cf32baf915
Rescue from Timeout::Error in ActiveResource::Connection.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-04-22 09:30:56 +12:00
Cheah Chu Yeow
105910429d
Introduce ActiveResource::Base.timeout. This allows a timeout to be set on the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2008-04-22 09:30:41 +12:00
Jeremy Kemper
ad8df03f9c
Add #clone. Closes #7352 [Ryan Daigle, thechrisoshow]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 21:17:38 +00:00
David Heinemeier Hansson
9300ebd86f
Fixed that to_param should be used and honored instead of hardcoding the id ( closes #11406 ) [gspiers]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-03-28 19:58:46 +00:00
Jeremy Kemper
ab45bd487a
URI.decode site username/password. Closes #11169 [Ernesto Jimenez]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-19 23:06:09 +00:00
Michael Koziarski
8bbabd43a9
Add user and password configuration options to ActiveResource::Base, not all credentials can be specified inline. Closes #11112 [ernesto.jimenez]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-18 00:21:18 +00:00
Michael Koziarski
5396b0f3b0
Use HEAD instead of GET inside exists? Closes #11062 [bscofield]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-02-09 22:21:55 +00:00
Jeremy Kemper
1f2e9bb280
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:32:38 +00:00
Jeremy Kemper
9a97f9a14b
find_or_create_resource_for handles module nesting. Closes #10646 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-02 09:14:34 +00:00
Rick Olson
e8730713d2
Allow setting ActiveResource::Base#format before #site. [rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-28 17:12:35 +00:00
Rick Olson
c54b915825
Support agnostic formats when calling custom methods. Closes #10635 [joerichsen]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-28 17:03:58 +00:00
Rick Olson
90d75e5109
inherit from the new ActiveSupport::BlankSlate class
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-28 17:02:01 +00:00
Jeremy Kemper
f91acf0258
Ruby 1.9 compat: move from the deprecated Base64 module to ActiveSupport::Base64. Closes #10554 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-18 21:14:07 +00:00
David Heinemeier Hansson
1ceccdeb7f
Added more specific exceptions for 400, 401, and 403 (all descending from ClientError so existing rescues will work) ( closes #10326 ) [trek]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-12-14 23:09:46 +00:00
Michael Koziarski
f29ae12535
Add Base#to_param to Active Resource that quacks like ActiveRecord. Closes #9557 [bradediger]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 02:13:51 +00:00
Jeremy Kemper
f118a5b05b
BlankSlate -> BasicObject
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-07 02:08:05 +00:00
Jeremy Kemper
0ee1cb2cd3
Ruby 1.9 compat, consistent load paths
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-02 05:32:14 +00:00
Michael Koziarski
fc042435a6
Fix ARes tests under jruby. [tom.enebo@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 18:01:09 +00:00
David Heinemeier Hansson
f99e5bba19
Increase test coverage ( closes #8699 , #8700 ) [josh]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-21 23:31:21 +00:00
David Heinemeier Hansson
dc399b96c8
Added ActiveResource.format= which defaults to :xml but can also be set to :json [DHH]. Added one-off declarations of mock behavior [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-20 23:18:05 +00:00
Tobias Lütke
18a4cc1bd2
Raise ActiveResource::Redirection on 301,302 http code
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-08-09 19:22:04 +00:00
Tobias Lütke
80d539bd4d
Fixes that using a subclass of an ARes object would cache a connection object based of its parent's site variable. Changing the parent's site would have no effect on the descentent objects.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-27 16:00:07 +00:00
Jeremy Kemper
e682fee121
Fix reload error when path prefix is used. Closes #8727 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-22 18:15:40 +00:00
Rick Olson
9e4461438f
Added proper handling of arrays. Closes #8537 [hasmanyjosh]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-21 15:07:15 +00:00
Tobias Lütke
bfda4cdc5a
Fixed query methods on resources. [Cody Fauser]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-08 19:32:15 +00:00
Rick Olson
4d1c87a069
pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [alloy]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6925 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-06-01 17:14:14 +00:00
Jeremy Kemper
849038ee51
Recognize and raise an exception on 405 Method Not Allowed responses. Closes #7692 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-26 20:57:08 +00:00
Rick Olson
08736788c9
Handle string and symbol param keys when splitting params into prefix params and query params.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-09 03:51:06 +00:00
Tobias Lütke
0306e4a204
Make respond_to? work as expected
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-04 20:07:37 +00:00
David Heinemeier Hansson
04fd94d8f8
BACKWARDS INCOMPATIBLE: Changed the finder API to be more extensible with :params and more strict usage of scopes [DHH] Added find-one with symbol [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-01 04:48:48 +00:00
Rick Olson
8e8fd99d7f
change #custom_headers to just #headers [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 04:46:14 +00:00
Rick Olson
bd50d82f70
Add support for setting custom headers per ActiveResource model [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-29 03:14:36 +00:00
David Heinemeier Hansson
70ac560e42
Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-28 15:57:29 +00:00
David Heinemeier Hansson
1d5c34c2c2
Added find-by-path options to ActiveResource::Base.find [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-27 20:54:53 +00:00
David Heinemeier Hansson
234b0b7ca0
Added support for using classes from within a single nested module [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-26 19:38:16 +00:00
David Heinemeier Hansson
46b58d80b9
The find should instantiate real objects, not return hashes
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-26 02:03:40 +00:00
David Heinemeier Hansson
9b8399fb7f
Added support for calling custom methods #6979 [rwdaigle]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-26 01:53:01 +00:00
Rick Olson
208d12d15d
Remove explicit prefix_options parameter for ActiveResource::Base#initialize. Allow ActiveResource::Base.delete with custom prefix. Add ActiveResource::Base#dup [Rick]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-24 16:05:20 +00:00
David Heinemeier Hansson
c97f329b2a
Disregard namespaces from the default element name, so Highrise::Person will just try to fetch from "/people", not "/highrise/people" [DHH] Added that saves which get a body response (and not just a 201) will use that response to update themselves [DHH] Fixed constant warning when fetching the same object multiple times [DHH]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-19 22:18:03 +00:00
Jeremy Kemper
d97456dd82
Allow array and hash query parameters. Closes #7756 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-11 13:27:57 +00:00
Jeremy Kemper
1d8cd1d744
Squash test warnings.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-24 18:29:07 +00:00
Jeremy Kemper
1b1ddf1736
Loading a resource preserves its prefix_options. Closes #7353 . Silence prefix redefinition warnings; fix type in logged error.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-24 18:27:36 +00:00
Rick Olson
f49e449ed5
Carry over the convenience of #create from ActiveRecord. Closes #7340 . [Ryan Daigle]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-24 02:40:32 +00:00
Rick Olson
1bdb14bdd3
Increase ActiveResource::Base test coverage. Closes #7173 , #7174 [Rich Collins]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-23 05:22:33 +00:00
Jeremy Kemper
e00e6a2941
Interpret 422 Unprocessable Entity as ResourceInvalid. Closes #7097 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-17 00:46:32 +00:00
Jeremy Kemper
2bb33bbd59
Base.exists?(id, options) and Base#exists? check whether the resource is found. Closes #6970 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-01-12 07:20:05 +00:00
Jeremy Kemper
73101af6ab
prefix_parameters pulls /:path/:params from the URI prefix
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5809 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-29 22:16:04 +00:00
Jeremy Kemper
4e57ac3544
Query string support. Closes #6855 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-29 01:18:09 +00:00
Jeremy Kemper
c172154054
Base#==, eql?, and hash methods. == returns true if its argument is identical to self or if it's an instance of the same class, is not new?, and has the same id. eql? is an alias for ==. hash delegates to id.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-22 21:42:52 +00:00
Jeremy Kemper
bc3d150386
test that element name includes module nesting
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5770 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-21 23:34:52 +00:00
Jeremy Kemper
e6988ef2ce
Subclasses share superclass site until explicitly set. This way you can set Superclass.site = ... after subclasses have been defined.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-21 22:12:21 +00:00
Jeremy Kemper
93c816f0c2
move http_mock to lib so others can use it in their Ares tests
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-12-21 20:26:30 +00:00