nomo 0.0.17 → 0.0.18
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/nomo/model.rb +24 -18
- data/lib/nomo/page.rb +2 -0
- data/lib/nomo/version.rb +1 -1
- data/lib/nomo.rb +4 -0
- metadata +5 -5
data/lib/nomo/model.rb
CHANGED
@@ -18,13 +18,15 @@ module Nomo
|
|
18
18
|
end
|
19
19
|
|
20
20
|
if !options.has_key?(:callbacks) || options[:callbacks] == true
|
21
|
-
after_save modify_page_method
|
22
|
-
after_touch modify_page_method
|
23
|
-
after_destroy modify_page_method
|
21
|
+
after_save modify_page_method, options
|
22
|
+
after_touch modify_page_method, options
|
23
|
+
after_destroy modify_page_method, options
|
24
24
|
elsif options[:callbacks].is_a?(Array)
|
25
|
-
after_save modify_page_method if options[:callbacks].include?(:save)
|
26
|
-
after_touch modify_page_method if options[:callbacks].include?(:touch)
|
27
|
-
after_destroy modify_page_method if options[:callbacks].include?(:destroy)
|
25
|
+
after_save modify_page_method, options if options[:callbacks].include?(:save)
|
26
|
+
after_touch modify_page_method, options if options[:callbacks].include?(:touch)
|
27
|
+
after_destroy modify_page_method, options if options[:callbacks].include?(:destroy)
|
28
|
+
after_create modify_page_method, options if options[:callbacks].include?(:create)
|
29
|
+
after_update modify_page_method, options if options[:callbacks].include?(:update)
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
@@ -42,13 +44,15 @@ module Nomo
|
|
42
44
|
end
|
43
45
|
|
44
46
|
if !options.has_key?(:callbacks) || options[:callbacks] == true
|
45
|
-
after_save modify_association_page_method
|
46
|
-
after_touch modify_association_page_method
|
47
|
-
after_destroy modify_association_page_method
|
47
|
+
after_save modify_association_page_method, options
|
48
|
+
after_touch modify_association_page_method, options
|
49
|
+
after_destroy modify_association_page_method, options
|
48
50
|
elsif options[:callbacks].is_a?(Array)
|
49
|
-
after_save modify_association_page_method if options[:callbacks].include?(:save)
|
50
|
-
after_touch modify_association_page_method if options[:callbacks].include?(:touch)
|
51
|
-
after_destroy modify_association_page_method if options[:callbacks].include?(:destroy)
|
51
|
+
after_save modify_association_page_method, options if options[:callbacks].include?(:save)
|
52
|
+
after_touch modify_association_page_method, options if options[:callbacks].include?(:touch)
|
53
|
+
after_destroy modify_association_page_method, options if options[:callbacks].include?(:destroy)
|
54
|
+
after_create modify_association_page_method, options if options[:callbacks].include?(:create)
|
55
|
+
after_update modify_association_page_method, options if options[:callbacks].include?(:update)
|
52
56
|
end
|
53
57
|
end
|
54
58
|
|
@@ -64,13 +68,15 @@ module Nomo
|
|
64
68
|
end
|
65
69
|
|
66
70
|
if !options.has_key?(:callbacks) || options[:callbacks] == true
|
67
|
-
after_save modify_association_pages_method
|
68
|
-
after_touch modify_association_pages_method
|
69
|
-
after_destroy modify_association_pages_method
|
71
|
+
after_save modify_association_pages_method, options
|
72
|
+
after_touch modify_association_pages_method, options
|
73
|
+
after_destroy modify_association_pages_method, options
|
70
74
|
elsif options[:callbacks].is_a?(Array)
|
71
|
-
after_save modify_association_pages_method if options[:callbacks].include?(:save)
|
72
|
-
after_touch modify_association_pages_method if options[:callbacks].include?(:touch)
|
73
|
-
after_destroy modify_association_pages_method if options[:callbacks].include?(:destroy)
|
75
|
+
after_save modify_association_pages_method, options if options[:callbacks].include?(:save)
|
76
|
+
after_touch modify_association_pages_method, options if options[:callbacks].include?(:touch)
|
77
|
+
after_destroy modify_association_pages_method, options if options[:callbacks].include?(:destroy)
|
78
|
+
after_create modify_association_pages_method, options if options[:callbacks].include?(:create)
|
79
|
+
after_update modify_association_pages_method, options if options[:callbacks].include?(:update)
|
74
80
|
end
|
75
81
|
end
|
76
82
|
end
|
data/lib/nomo/page.rb
CHANGED
data/lib/nomo/version.rb
CHANGED
data/lib/nomo.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
|
-
requirement: &
|
16
|
+
requirement: &70223877297980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70223877297980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: redis-namespace
|
27
|
-
requirement: &
|
27
|
+
requirement: &70223877287300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70223877287300
|
36
36
|
description: 304 Not Modified Headers made easy.
|
37
37
|
email:
|
38
38
|
- sausman@stackd.com
|