mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
reformats an example in the rdoc of delegate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user