kuhsaft 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/kuhsaft/brick.rb +7 -1
- data/lib/kuhsaft/version.rb +1 -1
- metadata +3 -3
data/app/models/kuhsaft/brick.rb
CHANGED
@@ -56,7 +56,13 @@ module Kuhsaft
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def set_position
|
59
|
-
self.position = self.position.
|
59
|
+
self.position = if self.position.present?
|
60
|
+
self.position
|
61
|
+
elsif self.respond_to?(:brick_list) && self.brick_list.present?
|
62
|
+
brick_list.maximum(:position) + 1
|
63
|
+
else
|
64
|
+
1
|
65
|
+
end
|
60
66
|
end
|
61
67
|
|
62
68
|
def brick_list_type
|
data/lib/kuhsaft/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuhsaft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -492,7 +492,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
492
492
|
version: '0'
|
493
493
|
segments:
|
494
494
|
- 0
|
495
|
-
hash: -
|
495
|
+
hash: -648523853281358618
|
496
496
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
497
497
|
none: false
|
498
498
|
requirements:
|
@@ -501,7 +501,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
501
501
|
version: '0'
|
502
502
|
segments:
|
503
503
|
- 0
|
504
|
-
hash: -
|
504
|
+
hash: -648523853281358618
|
505
505
|
requirements: []
|
506
506
|
rubyforge_project: kuhsaft
|
507
507
|
rubygems_version: 1.8.24
|