From bb818372011eec8060aee775f5bc2f402af25dab Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 6 Feb 2010 21:12:53 +0100 Subject: reformats an example in the rdoc of delegate --- activesupport/lib/active_support/core_ext/module/delegation.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3