ohm-contrib 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ohm/contrib.rb +1 -1
- data/lib/ohm/contrib/callbacks.rb +2 -2
- data/test/macro_callbacks_test.rb +1 -1
- data/test/typecast_array_test.rb +1 -0
- data/test/typecast_string_test.rb +1 -0
- metadata +5 -5
data/lib/ohm/contrib.rb
CHANGED
@@ -181,13 +181,13 @@ module Ohm
|
|
181
181
|
existing = !new?
|
182
182
|
|
183
183
|
if valid?
|
184
|
-
execute_callback(:before, :save)
|
184
|
+
execute_callback(:before, :save)
|
185
185
|
execute_callback(:before, :update) if existing
|
186
186
|
end
|
187
187
|
|
188
188
|
super.tap do |is_saved|
|
189
189
|
if is_saved
|
190
|
-
execute_callback(:after, :save)
|
190
|
+
execute_callback(:after, :save)
|
191
191
|
execute_callback(:after, :update) if existing
|
192
192
|
end
|
193
193
|
end
|
data/test/typecast_array_test.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 37
|
9
|
+
version: 0.0.37
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Cyril David
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-04 00:00:00 +08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: "0"
|
83
83
|
type: :development
|
84
84
|
version_requirements: *id005
|
85
|
-
description:
|
85
|
+
description: Includes a couple of core functions such as callbacks, timestamping, typecasting and lots of generic validation routines.
|
86
86
|
email: cyx.ucron@gmail.com
|
87
87
|
executables: []
|
88
88
|
|
@@ -164,6 +164,6 @@ rubyforge_project: ohm-contrib
|
|
164
164
|
rubygems_version: 1.3.7
|
165
165
|
signing_key:
|
166
166
|
specification_version: 2
|
167
|
-
summary: A collection of decoupled drop-in modules for Ohm
|
167
|
+
summary: A collection of decoupled drop-in modules for Ohm.
|
168
168
|
test_files: []
|
169
169
|
|