|
|
|
|
|
by ryanbrunner
4476 days ago
|
|
If you had a view decorator that applied presentational logic to a model, I don't see a problem at all in including that in a controller. I wouldn't have any issue at all with a controller action that looked like: def index
respond_with PersonListDecorator.wrap(Person.all)
end
|
|