Methods

Class Index [+]

Quicksearch

DataMapper::Validations::Format::Url

Constants

Url

Public Class Methods

included(base) click to toggle source
    # File lib/dm-validations/formats/url.rb, line 8
 8:         def self.included(base)
 9:           DataMapper::Validations::FormatValidator::FORMATS.merge!(
10:             :url => [
11:               Url,
12:               lambda { |field, value|
13:                 '%s is not a valid URL'.t(value)
14:               }
15:             ]
16:           )
17:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.