aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 03be99e8f0..1e752b449d 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -439,11 +439,11 @@ Rails 4.1 now expects an explicit block to be passed when calling
`ActiveSupport::Callbacks` being largely rewritten for the 4.1 release.
```ruby
-# Rails 4.1
-set_callback :save, :around, ->(r, block) { stuff; result = block.call; stuff }
-
-# Rails 4.0
+# Previously in Rails 4.0
set_callback :save, :around, ->(r, &block) { stuff; result = block.call; stuff }
+
+# Now in Rails 4.1
+set_callback :save, :around, ->(r, block) { stuff; result = block.call; stuff }
```
Upgrading from Rails 3.2 to Rails 4.0