From b74490e4f25ef26de3906cd5cd9ca0193e873372 Mon Sep 17 00:00:00 2001 From: Amit Thawait Date: Tue, 18 Feb 2014 11:26:54 -0800 Subject: Typo fix for unscope --- activerecord/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 38206d727f..7efd75a239 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -46,7 +46,7 @@ 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 -- cgit v1.2.3