view app/views/enumerations/index.api.rsb @ 1480:75fd8eace091 issue_556

Close obsolete branch issue_556
author Chris Cannam
date Sat, 13 Jul 2013 15:26: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