opts_from_validator_args (DataMapper::Validate::ClassMethods)

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