Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/lifo/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Oct 14, 2010
2 parents 01ab6f9 + cfb1ba0 commit 13f7f89
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/metal/conditional_get.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def stale?(options)
# Examples:
# expires_in 20.minutes
# expires_in 3.hours, :public => true
# expires in 3.hours, 'max-stale' => 5.hours, :public => true
# expires_in 3.hours, 'max-stale' => 5.hours, :public => true
#
# This method will overwrite an existing Cache-Control header.
# See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more possibilities.
Expand Down
10 changes: 0 additions & 10 deletions activerecord/lib/active_record/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,6 @@ module ActiveRecord
# needs to be aware of it because an ordinary +save+ will raise such exception
# instead of quietly returning +false+.
#
# == Debugging callbacks
#
# To list the methods and procs registered with a particular callback, append <tt>_callback_chain</tt> to
# the callback name that you wish to list and send that to your class from the Rails console:
#
# >> Topic.after_save_callback_chain
# => [#<ActiveSupport::Callbacks::Callback:0x3f6a448
# @method=#<Proc:0x03f9a42c@/Users/foo/bar/app/models/topic.rb:43>, kind:after_save, identifiernil,
# options{}]
#
module Callbacks
extend ActiveSupport::Concern

Expand Down
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/core_ext/time/conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class Time
#
# time = Time.now # => Thu Jan 18 06:10:17 CST 2007
#
# time.to_formatted_s(:time) # => "06:10:17"
# time.to_s(:time) # => "06:10:17"
# time.to_formatted_s(:time) # => "06:10"
# time.to_s(:time) # => "06:10"
#
# time.to_formatted_s(:db) # => "2007-01-18 06:10:17"
# time.to_formatted_s(:number) # => "20070118061017"
Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/association_basics.textile
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ build_customer
create_customer
</ruby>

h6(#belongs_to-association). <tt>_association_(force_reload = false)</tt>
h6(#belongs_to-association). <tt><em>association</em>(force_reload = false)</tt>

The <tt><em>association</em></tt> method returns the associated object, if any. If no associated object is found, it returns +nil+.

Expand Down
2 changes: 1 addition & 1 deletion railties/guides/source/command_line.textile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $ rails generate controller Greetings hello

What all did this generate? It made sure a bunch of directories were in our application, and created a controller file, a functional test file, a helper for the view, and a view file.

Check out the controller and modify it a little (in +app/controllers/greetings_controller.rb+):ma
Check out the controller and modify it a little (in +app/controllers/greetings_controller.rb+):

<ruby>
class GreetingsController < ApplicationController
Expand Down

0 comments on commit 13f7f89

Please sign in to comment.