aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorAmit Thawait <amit17thawait@gmail.com>2014-02-18 11:26:54 -0800
committerAmit Thawait <amit17thawait@gmail.com>2014-02-18 11:26:54 -0800
commitb74490e4f25ef26de3906cd5cd9ca0193e873372 (patch)
treee020675579f6052cb35eb819fb8d325380b2da1b /guides/source/upgrading_ruby_on_rails.md
parent33cb47ee488b2381d87f5bb36818cae5fa76c22e (diff)
downloadrails-b74490e4f25ef26de3906cd5cd9ca0193e873372.tar.gz
rails-b74490e4f25ef26de3906cd5cd9ca0193e873372.tar.bz2
rails-b74490e4f25ef26de3906cd5cd9ca0193e873372.zip
Typo fix for unscope
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index a8b7c9d492..af3580a85b 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -315,7 +315,7 @@ To get the previous behavior it is needed to explicitly remove the
```ruby
class User < ActiveRecord::Base
default_scope { where state: 'pending' }
- scope :active, -> { unescope(where: :state).where(state: 'active') }
+ scope :active, -> { unscope(where: :state).where(state: 'active') }
scope :inactive, -> { rewhere state: 'inactive' }
end