Skip to content

Commit

Permalink
automatically include SexyValidations into model when this plugin is …
Browse files Browse the repository at this point in the history
…used
  • Loading branch information
netskin-ci committed Sep 9, 2010
1 parent 57134c5 commit b762311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sequel_sexy_validations.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Plugins
module SexyValidations module SexyValidations


def self.apply(model, opts={}, &block) def self.apply(model, opts={}, &block)
model.send(:include, ::SexyValidations)
end end


def self.configure(model, opts={}, &block) def self.configure(model, opts={}, &block)
Expand Down

0 comments on commit b762311

Please sign in to comment.