not_naughty 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/sequel_not_naughty.rb +4 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ include FileUtils
|
|
9
9
|
# Configuration
|
10
10
|
##############################################################################
|
11
11
|
NAME = "not_naughty"
|
12
|
-
VERS = "0.4.
|
12
|
+
VERS = "0.4.2"
|
13
13
|
CLEAN.include ["**/.*.sw?", "pkg/*", ".config", "doc/*", "coverage/*"]
|
14
14
|
RDOC_OPTS = [
|
15
15
|
"--quiet",
|
data/lib/sequel_not_naughty.rb
CHANGED
@@ -81,8 +81,10 @@ module Sequel #:nodoc:
|
|
81
81
|
base.instance_eval do
|
82
82
|
def_hook_method :before_validate
|
83
83
|
def_hook_method :after_validate
|
84
|
-
|
85
|
-
|
84
|
+
unless instance_methods.include? 'validate_without_hooks'
|
85
|
+
alias_method :validate_without_hooks, :validate
|
86
|
+
alias_method :validate, :validate_with_hooks
|
87
|
+
end
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|