view app/views/enumerations/index.api.rsb @ 1458:b1f4c9a2af24 bug_794

Makes the default radio button checked by default -- this should fix bug #794.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 11 Nov 2013 18:25:22 +0000
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