diff options
author | Xavier Noria <fxn@hashref.com> | 2010-02-06 21:12:53 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-02-06 21:12:53 +0100 |
commit | bb818372011eec8060aee775f5bc2f402af25dab (patch) | |
tree | 3cade8a08699561e43bacfc328b289e298a986b9 /activesupport/lib/active_support | |
parent | b712d80085a819cad09377f023b935493d8933de (diff) | |
download | rails-bb818372011eec8060aee775f5bc2f402af25dab.tar.gz rails-bb818372011eec8060aee775f5bc2f402af25dab.tar.bz2 rails-bb818372011eec8060aee775f5bc2f402af25dab.zip |
reformats an example in the rdoc of delegate
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/delegation.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index c751e29908..381181b2f4 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -7,8 +7,13 @@ class Module # Delegation is particularly useful with Active Record associations: # # class Greeter < ActiveRecord::Base - # def hello() "hello" end - # def goodbye() "goodbye" end + # def hello + # "hello" + # end + # + # def goodbye + # "goodbye" + # end # end # # class Foo < ActiveRecord::Base |