opts_from_validator_args (DataMapper::Validate::ClassMethods)

    # File lib/dm-validations.rb, line 169
          def opts_from_validator_args(args, defaults = nil)
            opts = args.last.kind_of?(Hash) ? args.pop : {}
            context = opts.delete(:group) || opts.delete(:on) || opts.delete(:when) || opts.delete(:context) || :default
            opts[:context] = context
            opts.merge!(defaults) unless defaults.nil?
            opts
          end