Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 355 Bytes

Ruby-Sequels adapter to NotNaughty - The Validation Framework

Validate all your Ruby Sequel models with NotNaughty:

class Sequel::Model
  is :notnaughty
end

Validate just specific models:

class Item < Sequel::Model
  is :notnaughty

  validates_uniqueness_of :name, :in => category
end

For more examples see NotNaughty documentation.