ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
209 stars 51 forks source link

more accurate collection determination #64

Closed bsedin closed 9 years ago

bsedin commented 9 years ago

Got problems today with Sequel::Model object, which responses to each method. All seems to be okay with to_ary.

ccocchi commented 9 years ago

to_ary would not be a good choice I think since actual collection are not implemeting it, for example Set.
Your problem is related to #55 and the solution would be to add Sequel::Model to the list of non-collection classes in the configuration.

bsedin commented 9 years ago

It works, thank you! I missed it somehow.