Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gsub("ActiveResource", "Active Resource")

  • Loading branch information...
commit 291333d93a443d378e8837d97e04f06911ff85ab 1 parent 46f0836
@fxn fxn authored
View
8 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 @@ class Base
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 @@ def site
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 @@ def id=(id)
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
View
4 activeresource/lib/active_resource/custom_methods.rb
@@ -48,8 +48,8 @@ class << self
# # => [{: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)
View
2  activeresource/lib/active_resource/formats/xml_format.rb
@@ -21,7 +21,7 @@ def decode(xml)
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
View
2  activeresource/lib/active_resource/http_mock.rb
@@ -21,7 +21,7 @@ class InvalidRequestError < StandardError; end #:nodoc:
# * <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
View
2  activeresource/lib/active_resource/validations.rb
@@ -216,7 +216,7 @@ def from_xml(xml)
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).
Please sign in to comment.
Something went wrong with that request. Please try again.