aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJosé Corcuera <jzcorcuera@gmail.com>2012-09-21 12:29:24 -0500
committerJosé Corcuera <jzcorcuera@gmail.com>2012-09-21 12:29:44 -0500
commit66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9 (patch)
tree26ac7ddee40c3fd85fed3fe1f7e3b8cf548baf70 /activesupport/lib
parent3b7947ea31489afd020419e3c22ee01ce4809103 (diff)
downloadrails-66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9.tar.gz
rails-66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9.tar.bz2
rails-66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9.zip
Update examples in AS::Concern to use correct scope syntax. [ci skip]
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/concern.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb
index 4ad49236f9..fb7065ef3b 100644
--- a/activesupport/lib/active_support/concern.rb
+++ b/activesupport/lib/active_support/concern.rb
@@ -4,7 +4,7 @@ module ActiveSupport
# module M
# def self.included(base)
# base.extend ClassMethods
- # scope :disabled, where(disabled: true)
+ # scope :disabled, -> { where(disabled: true) }
# end
#
# module ClassMethods
@@ -21,7 +21,7 @@ module ActiveSupport
# extend ActiveSupport::Concern
#
# included do
- # scope :disabled, where(disabled: true)
+ # scope :disabled, -> { where(disabled: true) }
# end
#
# module ClassMethods