21cb1d40b9
Signed-off-by: José Valim <jose.valim@gmail.com>
11 lines
155 B
Ruby
11 lines
155 B
Ruby
class Post
|
|
class TrackBack
|
|
def to_model
|
|
NamedTrackBack.new(self)
|
|
end
|
|
end
|
|
|
|
class NamedTrackBack
|
|
extend ActiveModel::Naming
|
|
end
|
|
end |