projecthydra/active_fedora — pull request #111 by jcoyne (2013-06-12 20:16:24+00:00)
Title: Added method: ActiveFedora::Base#required?

Created ActiveFedora::Base#required? which, when given a field name,
tells you if the field is required or not. It figures this out by
looking for a PresenceValidator (e.g. validates_presence_of) for the
field.

This is useful so that we can create dynamically generated forms and
determine whether any given field is required or not.