options_with_message (DataMapper::Validate::AutoValidate)

    # File lib/dm-validations/auto_validate.rb, line 10
          def options_with_message(base_options, property, validator_name)
            options = base_options.clone
            opts = property.options
            options[:message] = if opts[:messages]
              if opts[:messages].is_a?(Hash) and msg = opts[:messages][validator_name]
                msg
              else
                nil
              end
            elsif opts[:message]
              opts[:message]
            else
              nil
            end
            options
          end