aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-05-21 23:36:18 +0200
committerXavier Noria <fxn@hashref.com>2008-05-21 23:39:07 +0200
commit291333d93a443d378e8837d97e04f06911ff85ab (patch)
treec8c085c33c9a9697d38953eb1cb25aa47ae7e3bd /activeresource/lib
parent46f0836d60da3e1e3508b1e03cd123cf8c58df6e (diff)
downloadrails-291333d93a443d378e8837d97e04f06911ff85ab.tar.gz
rails-291333d93a443d378e8837d97e04f06911ff85ab.tar.bz2
rails-291333d93a443d378e8837d97e04f06911ff85ab.zip
gsub("ActiveResource", "Active Resource")
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/base.rb8
-rw-r--r--activeresource/lib/active_resource/custom_methods.rb4
-rw-r--r--activeresource/lib/active_resource/formats/xml_format.rb2
-rw-r--r--activeresource/lib/active_resource/http_mock.rb2
-rw-r--r--activeresource/lib/active_resource/validations.rb2
5 files changed, 9 insertions, 9 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 6e0d7e9d1d..b38b4c0194 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -127,7 +127,7 @@ module ActiveResource
# # GET http://api.people.com:3000/people/999.xml
# ryan = Person.find(999) # 404, raises ActiveResource::ResourceNotFound
#
- # <tt>404</tt> is just one of the HTTP error response codes that ActiveResource will handle with its own exception. The
+ # <tt>404</tt> is just one of the HTTP error response codes that Active Resource will handle with its own exception. The
# following HTTP response codes will also result in these exceptions:
#
# * 200..399 - Valid response, no exception
@@ -201,7 +201,7 @@ module ActiveResource
class << self
# Gets the URI of the REST resources to map for this class. The site variable is required
- # ActiveResource's mapping to work.
+ # Active Resource's mapping to work.
def site
# Not using superclass_delegating_reader because don't want subclasses to modify superclass instance
#
@@ -226,7 +226,7 @@ module ActiveResource
end
# Sets the URI of the REST resources to map for this class to the value in the +site+ argument.
- # The site variable is required ActiveResource's mapping to work.
+ # The site variable is required Active Resource's mapping to work.
def site=(site)
@connection = nil
if site.nil?
@@ -701,7 +701,7 @@ module ActiveResource
attributes[self.class.primary_key] = id
end
- # Allows ActiveResource objects to be used as parameters in Action Pack URL generation.
+ # Allows Active Resource objects to be used as parameters in Action Pack URL generation.
def to_param
id && id.to_s
end
diff --git a/activeresource/lib/active_resource/custom_methods.rb b/activeresource/lib/active_resource/custom_methods.rb
index 52a4a4f10b..33a2fffaa0 100644
--- a/activeresource/lib/active_resource/custom_methods.rb
+++ b/activeresource/lib/active_resource/custom_methods.rb
@@ -48,8 +48,8 @@ module ActiveResource
# # => [{:id => 1, :name => 'Ryan'}]
#
# Note: the objects returned from this method are not automatically converted
- # into ActiveResource instances - they are ordinary Hashes. If you are expecting
- # ActiveResource instances, use the <tt>find</tt> class method with the
+ # into Active Resource instances - they are ordinary Hashes. If you are expecting
+ # Active Resource instances, use the <tt>find</tt> class method with the
# <tt>:from</tt> option. For example:
#
# Person.find(:all, :from => :active)
diff --git a/activeresource/lib/active_resource/formats/xml_format.rb b/activeresource/lib/active_resource/formats/xml_format.rb
index 01c28dcee6..5e97ffa776 100644
--- a/activeresource/lib/active_resource/formats/xml_format.rb
+++ b/activeresource/lib/active_resource/formats/xml_format.rb
@@ -21,7 +21,7 @@ module ActiveResource
private
# Manipulate from_xml Hash, because xml_simple is not exactly what we
- # want for ActiveResource.
+ # want for Active Resource.
def from_xml_data(data)
if data.is_a?(Hash) && data.keys.size == 1
data.values.first
diff --git a/activeresource/lib/active_resource/http_mock.rb b/activeresource/lib/active_resource/http_mock.rb
index cf102da379..ab219ef19d 100644
--- a/activeresource/lib/active_resource/http_mock.rb
+++ b/activeresource/lib/active_resource/http_mock.rb
@@ -21,7 +21,7 @@ module ActiveResource
# * <tt>request_headers</tt> - Headers that are expected along with the request. This argument uses a
# hash format, such as <tt>{ "Content-Type" => "application/xml" }</tt>. This mock will only trigger
# if your tests sends a request with identical headers.
- # * <tt>body</tt> - The data to be returned. This should be a string of ActiveResource parseable content,
+ # * <tt>body</tt> - The data to be returned. This should be a string of Active Resource parseable content,
# such as XML.
# * <tt>status</tt> - The HTTP response code, as an integer, to return with the response.
# * <tt>response_headers</tt> - Headers to be returned with the response. Uses the same hash format as
diff --git a/activeresource/lib/active_resource/validations.rb b/activeresource/lib/active_resource/validations.rb
index b955db6ec1..a7c624f309 100644
--- a/activeresource/lib/active_resource/validations.rb
+++ b/activeresource/lib/active_resource/validations.rb
@@ -216,7 +216,7 @@ module ActiveResource
end
end
- # Module to allow validation of ActiveResource objects, which creates an Errors instance for every resource.
+ # Module to allow validation of Active Resource objects, which creates an Errors instance for every resource.
# Methods are implemented by overriding Base#validate or its variants Each of these methods can inspect
# the state of the object, which usually means ensuring that a number of attributes have a certain value
# (such as not empty, within a given range, matching a certain regular expression and so on).