Mercurial > hg > soundsoftware-site
view app/views/enumerations/index.api.rsb @ 1346:befaf13fec0d live
I think we have room for 7 projects here, rather than 5
author | Chris Cannam |
---|---|
date | Fri, 21 Jun 2013 15:05:30 +0100 |
parents | 433d4f72a19b |
children |
line wrap: on
line source
api.array @klass.name.underscore.pluralize do @enumerations.each do |enumeration| api.__send__ @klass.name.underscore do api.id enumeration.id api.name enumeration.name api.is_default enumeration.is_default end end end