prioritizable 0.0.1 → 0.0.2
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.
@@ -20,7 +20,6 @@ module ActsAsPrioritizable
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def prioritizable_parent
|
23
|
-
logger.info self.class.send(:class_variable_get, :@@prioritizable_parent) + "\n"
|
24
23
|
if self.class.send(:class_variable_get, :@@prioritizable_parent) == 'class'
|
25
24
|
return self.class
|
26
25
|
else
|
@@ -47,7 +46,7 @@ module ActsAsPrioritizable
|
|
47
46
|
|
48
47
|
def after_destroy
|
49
48
|
if(priority < lowest_priority && !prioritizable_parent.nil? rescue false)
|
50
|
-
prioritizables.select{|p| p.priority > priority}.each{|p| p.update_attribute(:priority, p.priority-1)}
|
49
|
+
prioritizables.select{|p| p.priority > priority rescue false }.each{|p| p.update_attribute(:priority, p.priority-1)}
|
51
50
|
end
|
52
51
|
end
|
53
52
|
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prioritizable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-01 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Prioritizable
|
15
15
|
email:
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- lib/prioritizable/acts_as_prioritizable.rb
|
27
27
|
- lib/prioritizable/version.rb
|
28
28
|
- lib/tasks/prioritizable_tasks.rake
|
29
|
+
- prioritizable-0.0.1.gem
|
29
30
|
- prioritizable.gemspec
|
30
31
|
homepage: ''
|
31
32
|
licenses: []
|