diff options
author | Tom Stuart <tom@experthuman.com> | 2010-08-05 09:02:30 +0100 |
---|---|---|
committer | Tom Stuart <tom@experthuman.com> | 2010-08-05 09:06:47 +0100 |
commit | f544c0a32dd86d4fe2c11e9111d3403fbbab2776 (patch) | |
tree | 2602c636a756cdafea1a7164c36e19f31342a563 /activesupport/lib/active_support/concern.rb | |
parent | d191db76e04f065e1b0cff3766c818f9b8e2f43a (diff) | |
download | rails-f544c0a32dd86d4fe2c11e9111d3403fbbab2776.tar.gz rails-f544c0a32dd86d4fe2c11e9111d3403fbbab2776.tar.bz2 rails-f544c0a32dd86d4fe2c11e9111d3403fbbab2776.zip |
Fix ActiveSupport::Callbacks' define_callbacks and ActiveSupport::Concern documentation to look like native English
Diffstat (limited to 'activesupport/lib/active_support/concern.rb')
-rw-r--r-- | activesupport/lib/active_support/concern.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb index 408d327dd7..2d87e8d0e5 100644 --- a/activesupport/lib/active_support/concern.rb +++ b/activesupport/lib/active_support/concern.rb @@ -4,33 +4,33 @@ # def self.included(base) # base.send(:extend, ClassMethods) # base.send(:include, InstanceMethods) -# scope :foo, :conditions => {:created_at => nil} +# scope :foo, :conditions => { :created_at => nil } # end # # module ClassMethods -# def cm; puts 'I am class method'; end +# def cm; puts 'I am a class method'; end # end # # module InstanceMethods -# def im; puts 'I am instance method'; end +# def im; puts 'I am an instance method'; end # end # end # -# By using <tt>ActiveSupport::Concern</tt> above module could be written as: +# By using <tt>ActiveSupport::Concern</tt> the above module could instead be written as: # # module M # extend ActiveSupport::Concern # -# included do -# scope :foo, :conditions => {:created_at => nil} +# included do +# scope :foo, :conditions => { :created_at => nil } # end # # module ClassMethods -# def cm; puts 'I am class method'; end +# def cm; puts 'I am a class method'; end # end # # module InstanceMethods -# def im; puts 'I am instance method'; end +# def im; puts 'I am an instance method'; end # end # end module ActiveSupport |