madmin 2.3.2 → 2.3.3
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2862cda2a9f7f8cc5313b205404c21bc4bd2e3a9aa780dfe6ba708ef0db51c34
|
|
4
|
+
data.tar.gz: a6dd1ac4898938c31ab694c61ca9c7ac379510b3ab00cc9830d8df43d651aff5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8958ec3db4a60cd9df3484a9eb864f6b273ef646ae5a631f13cc16f0d7870147998193552de77c4cef6aad57bf3d97db8bd3f18fa213304f35b430f5d60ac8c7
|
|
7
|
+
data.tar.gz: d0eb3ec050476cdd04beec7d6ec2cb3a5a1a10d47dbab182b19236b2d8d3a0b90bebdbda04a0e8f5f875a2b695379095a3681470178669a9bc23ccdcb1e55a22
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<% next if attribute.field.nil? %>
|
|
40
40
|
<% next unless attribute.field.visible?(action_name) %>
|
|
41
41
|
|
|
42
|
-
<th><%= sortable attribute.name, attribute.
|
|
42
|
+
<th><%= sortable attribute.name, attribute.field.label %></th>
|
|
43
43
|
<% end %>
|
|
44
44
|
<th></th>
|
|
45
45
|
</tr>
|
data/lib/madmin/field.rb
CHANGED
data/lib/madmin/resource.rb
CHANGED
|
@@ -54,15 +54,16 @@ module Madmin
|
|
|
54
54
|
config = ActiveSupport::OrderedOptions.new.merge(options)
|
|
55
55
|
yield config if block_given?
|
|
56
56
|
|
|
57
|
-
# Form is an alias for new & edit
|
|
58
|
-
if config.
|
|
59
|
-
|
|
60
|
-
config.edit = config[:form]
|
|
61
|
-
end
|
|
57
|
+
# Form is an alias for new & edit but shouldn't override their values if explicitly set (true/false)
|
|
58
|
+
config.new = config[:form] if config[:new].nil?
|
|
59
|
+
config.edit = config[:form] if config[:edit].nil?
|
|
62
60
|
|
|
63
61
|
# New/create and edit/update need to match
|
|
64
|
-
config.create = config
|
|
65
|
-
config.update = config
|
|
62
|
+
config.create = config.new
|
|
63
|
+
config.update = config.edit
|
|
64
|
+
|
|
65
|
+
# Remove any nil values to use the defaults
|
|
66
|
+
config.compact!
|
|
66
67
|
|
|
67
68
|
attributes[name] = Attribute.new(
|
|
68
69
|
name: name,
|
data/lib/madmin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: madmin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Oliver
|
|
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
285
285
|
- !ruby/object:Gem::Version
|
|
286
286
|
version: '0'
|
|
287
287
|
requirements: []
|
|
288
|
-
rubygems_version: 4.0.
|
|
288
|
+
rubygems_version: 4.0.12
|
|
289
289
|
specification_version: 4
|
|
290
290
|
summary: A modern admin for Ruby on Rails apps
|
|
291
291
|
test_files: []
|