para 0.7.3.p6 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4695189116a23dad447169ffd9b2a47dc56bc48
|
4
|
+
data.tar.gz: 884deba7d7d9e4d60a199bddc1919b29220d6241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e5f3d54ba71c70fb64f3c411d94464c961ed765ec6c9c173785ed32c487d80a2eda3aaafbe2b0394e937dede7022273ff0f742ed80a144adcc24ba67dee9f19
|
7
|
+
data.tar.gz: b09c174d2eef7bde8cc151323eefae7a6b9abd3227ca9a2d4d36173ce501c014c3db1d5d97aaf645a1d8d41084fe43946c526ab3bce0698d93df4c1ca6785769
|
@@ -3,7 +3,7 @@
|
|
3
3
|
%span.handle
|
4
4
|
%i.sort-dots
|
5
5
|
%span.node-name
|
6
|
-
=
|
6
|
+
= root.name
|
7
7
|
|
8
8
|
.pull-right
|
9
9
|
= link_to @component.relation_path(root, action: :edit, return_to: request.fullpath), class: "btn btn-icon-primary btn-shadow btn-sm hint--left", :'aria-label' => ::I18n.t('para.shared.edit') do
|
@@ -39,7 +39,7 @@ module Para
|
|
39
39
|
if through_reflection && through_reflection.klass.orderable?
|
40
40
|
assign_ordered_through_reflection_ids(through_reflection, resource, ids)
|
41
41
|
else
|
42
|
-
resource.
|
42
|
+
resource.assign_attributes(plural_foreign_key => ids)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/para/orderable.rb
CHANGED
@@ -15,7 +15,7 @@ module Para
|
|
15
15
|
def orderable_assign_position
|
16
16
|
return if attribute_present?(:position)
|
17
17
|
|
18
|
-
last_resource =
|
18
|
+
last_resource = orderabe_scope
|
19
19
|
.where.not(position: nil)
|
20
20
|
.select(:position)
|
21
21
|
.first
|
@@ -37,7 +37,7 @@ module Para
|
|
37
37
|
|
38
38
|
def orderable_scope
|
39
39
|
if (parent = _orderable_options[:parent]) && (as = _orderable_options[:as])
|
40
|
-
try(parent).try(as).try(:ordered) ||
|
40
|
+
try(parent).try(as).try(:ordered) || []
|
41
41
|
else
|
42
42
|
self.class.unscoped.ordered
|
43
43
|
end
|
data/lib/para/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: para
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.3
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentin Ballestrino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -390,22 +390,16 @@ dependencies:
|
|
390
390
|
name: font-awesome-sass
|
391
391
|
requirement: !ruby/object:Gem::Requirement
|
392
392
|
requirements:
|
393
|
-
- - "
|
393
|
+
- - "~>"
|
394
394
|
- !ruby/object:Gem::Version
|
395
395
|
version: 4.7.0
|
396
|
-
- - "<="
|
397
|
-
- !ruby/object:Gem::Version
|
398
|
-
version: 6.0.0
|
399
396
|
type: :runtime
|
400
397
|
prerelease: false
|
401
398
|
version_requirements: !ruby/object:Gem::Requirement
|
402
399
|
requirements:
|
403
|
-
- - "
|
400
|
+
- - "~>"
|
404
401
|
- !ruby/object:Gem::Version
|
405
402
|
version: 4.7.0
|
406
|
-
- - "<="
|
407
|
-
- !ruby/object:Gem::Version
|
408
|
-
version: 6.0.0
|
409
403
|
- !ruby/object:Gem::Dependency
|
410
404
|
name: compass-rails
|
411
405
|
requirement: !ruby/object:Gem::Requirement
|
@@ -839,9 +833,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
839
833
|
version: '0'
|
840
834
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
841
835
|
requirements:
|
842
|
-
- - "
|
836
|
+
- - ">="
|
843
837
|
- !ruby/object:Gem::Version
|
844
|
-
version:
|
838
|
+
version: '0'
|
845
839
|
requirements: []
|
846
840
|
rubyforge_project:
|
847
841
|
rubygems_version: 2.6.11
|