Skip to content
Browse files

automatically include SexyValidations into model when this plugin is …

…used
  • Loading branch information...
1 parent 57134c5 commit b76231129d0a8a0e0b07f627fcd346d3e4d9fedf @netskin-ci netskin-ci committed Sep 9, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sequel_sexy_validations.rb
View
1 lib/sequel_sexy_validations.rb
@@ -3,6 +3,7 @@ module Plugins
module SexyValidations
def self.apply(model, opts={}, &block)
+ model.send(:include, ::SexyValidations)
end
def self.configure(model, opts={}, &block)

0 comments on commit b762311

Please sign in to comment.
Something went wrong with that request. Please try again.