Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update language and use proper fonts for method names

  • Loading branch information...
commit a8e32152fcd07786fc6b0a58d999267bc3ddec04 1 parent 4be3c2c
@zapnap zapnap authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 activeresource/lib/active_resource/base.rb
View
10 activeresource/lib/active_resource/base.rb
@@ -426,16 +426,16 @@ def collection_path(prefix_options = {}, query_options = nil)
alias_method :set_primary_key, :primary_key= #:nodoc:
- # Create a new resource instance and request to the remote service
+ # Creates a new resource instance and makes a request to the remote service
# that it be saved, making it equivalent to the following simultaneous calls:
#
# ryan = Person.new(:first => 'ryan')
# ryan.save
#
- # The newly created resource is returned. If a failure has occurred an
- # exception will be raised (see save). If the resource is invalid and
- # has not been saved then valid? will return <tt>false</tt>,
- # while new? will still return <tt>true</tt>.
+ # Returns the newly created resource. If a failure has occurred an
+ # exception will be raised (see <tt>save</tt>). If the resource is invalid and
+ # has not been saved then <tt>valid?</tt> will return <tt>false</tt>,
+ # while <tt>new?</tt> will still return <tt>true</tt>.
#
# ==== Examples
# Person.create(:name => 'Jeremy', :email => 'myname@nospam.com', :enabled => true)
Please sign in to comment.
Something went wrong with that request. Please try again.