rails/activemodel/test/models/track_back.rb
Ernie Miller 21cb1d40b9 Test to_model being called in ActiveModel::Naming helpers
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-04 21:26:42 +02:00

11 lines
155 B
Ruby

class Post
class TrackBack
def to_model
NamedTrackBack.new(self)
end
end
class NamedTrackBack
extend ActiveModel::Naming
end
end