lib/sequel/plugins/validation_helpers.rb in sequel-3.11.0 vs lib/sequel/plugins/validation_helpers.rb in sequel-3.12.0
- old
+ new
@@ -1,11 +1,11 @@
module Sequel
module Plugins
# The validation_helpers plugin contains instance method equivalents for most of the legacy
# class-level validations. The names and APIs are different, though. Example:
#
+ # Sequel::Model.plugin :validation_helpers
# class Album < Sequel::Model
- # plugin :validation_helpers
# def validate
# validates_min_length 1, :num_tracks
# end
# end
#