Skip to content

Instantly share code, notes, and snippets.

@ripta
Created June 21, 2010 23:14
Show Gist options
  • Select an option

  • Save ripta/447681 to your computer and use it in GitHub Desktop.

Select an option

Save ripta/447681 to your computer and use it in GitHub Desktop.
class DataMapper::Validations::ValidationErrors
def self.default_error_message(key, field, *values)
@@default_error_messages[key] % [nil, *values].flatten
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment