five-two-nw-olivander 0.2.0.19 → 0.2.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/adminlte.css +5 -0
- data/app/assets/stylesheets/olivander/application.css +2 -0
- data/app/components/olivander/components/resource_show_component.html.haml +3 -2
- data/app/controllers/concerns/olivander/resources/auto_form_attributes.rb +2 -2
- data/lib/olivander/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b423d8efdeee9035fa27568e3895a4a5cbdc4ee7dd4e0856945186a806d924
|
4
|
+
data.tar.gz: 58ef396af93636d1316f2324f4ad7e093ed1a0fe59354d1020a2fc923e4558ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efeda8f2beef2e9f671cfc94e6fc3b1536c49bff56b48bcb2e31099b704e6d0dfff888cda9764bbb6d48f63bfcdc6b5cebf53d6e48794a82ef52d908ea6ce14c
|
7
|
+
data.tar.gz: 9ee8c40ee8d2ac987da36d0996b306176f6aeab4533d019c212926631943714c2017868859d7fedd505b695bad25568a72da1866167c51d3a685e6ab5cef6302
|
@@ -26,10 +26,11 @@
|
|
26
26
|
- when :association, :belongs_to_association, :has_many_association, :has_many_through_association, :has_and_belongs_to_many_reflection, :has_one_through_association
|
27
27
|
- if val.present?
|
28
28
|
- if val.is_a?(ActiveRecord::Associations::CollectionProxy)
|
29
|
-
%ul
|
29
|
+
%ul.no-bullets
|
30
30
|
- val.each do |val1|
|
31
31
|
- begin
|
32
|
-
|
32
|
+
- link = link_to(val1)
|
33
|
+
%li= link
|
33
34
|
- rescue
|
34
35
|
%li= val1
|
35
36
|
- else
|
@@ -67,9 +67,9 @@ module Olivander
|
|
67
67
|
.filter{ |x| x.foreign_key == inc || x.name == inc }
|
68
68
|
.each do |r|
|
69
69
|
begin
|
70
|
-
resource_field(r.name, r.association_class.name.demodulize.underscore.to_sym, editable: editable)
|
70
|
+
resource_field(r.name, r.association_class.name.demodulize.underscore.to_sym, editable: editable && !r.options.keys.include?(:through))
|
71
71
|
rescue NotImplementedError
|
72
|
-
resource_field(r.name, :association, editable: editable)
|
72
|
+
resource_field(r.name, :association, editable: editable && !r.options.keys.include?(:through))
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
data/lib/olivander/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: five-two-nw-olivander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.
|
4
|
+
version: 0.2.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dennis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|