motor-admin 0.1.14 → 0.1.15

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
  SHA256:
3
- metadata.gz: 690872e084d43d0b2759f48a2d33b7399470b6dec88678248982daf0b0ca2e8a
4
- data.tar.gz: 3949cd11e7773c19dd03c77dd1b52477ed282e3e40e9e688bf9018e7c93c2b13
3
+ metadata.gz: d4b6ae30f7e0382a7ff6b56e04ef3de41396a89e0cff6c2595af76677af8685c
4
+ data.tar.gz: 8a6b99fd18067c6b535db0746eaef258da807a57d493e816b2c6b38396d716f9
5
5
  SHA512:
6
- metadata.gz: 244c24b44ab251e6a71fe9e4200062b8d6c3679effb03c902759f3ef389d87cf87f8cf7fcf5c48c15a0c4358fc0ee750964b03c17eccd2f3af7cba19a0282ba8
7
- data.tar.gz: 9225e1067d918fccd2dbef1c661e5128299579bd05fe4b52738bcb1ca2cc90c7495cbd07a556661000654ff0e4f6fd3e76d8049d44e3748f759e39566f89ffeb
6
+ metadata.gz: d41941aa4ccefd944c9caa0403d25e91f08e1a6ca7bf3064d49f181a906c9fa052777543a113d0ea079c5d317595b34257a3d7b7ee4540ee79fce4c52e54d8b3
7
+ data.tar.gz: 5f224df7542462dd74fd22093688351d5edd3fdea2615d51df3aa3a33d5194d6917f28ffc2c53a0298fcdb9c2c56e88bb97d539b18116f81d08a355adac60458
@@ -97,19 +97,6 @@ module Motor
97
97
  reference_columns + table_columns
98
98
  end
99
99
 
100
- def build_column(model, column)
101
- {
102
- name: column.name,
103
- display_name: column.name.humanize,
104
- column_type: ActiveRecordUtils::Types::UNIFIED_TYPES[column.type.to_s] || column.type.to_s,
105
- access_type: COLUMN_NAME_ACCESS_TYPES.fetch(column.name, ColumnAccessTypes::READ_WRITE),
106
- default_value: default_attrs[column.name],
107
- validators: fetch_validators(model, column.name),
108
- reference: fetch_reference(model, column.name),
109
- virtual: false
110
- }
111
- end
112
-
113
100
  def fetch_reference_columns(model)
114
101
  default_attrs = model.new.attributes
115
102
 
@@ -122,7 +109,7 @@ module Motor
122
109
  next
123
110
  end
124
111
 
125
- column_name = ref.belongs_to? ? ref.foreign_key : name
112
+ column_name = ref.belongs_to? ? ref.foreign_key.to_s : name
126
113
 
127
114
  next if ref.klass.name == 'ActiveStorage::Blob'
128
115
 
@@ -51,7 +51,7 @@ module Motor
51
51
  if order.present?
52
52
  order.index(item[:name]) || Float::MAX
53
53
  else
54
- item[:display_name]
54
+ item[:display_name].to_s
55
55
  end
56
56
  end
57
57
  end
data/lib/motor/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.1.14'
4
+ VERSION = '0.1.15'
5
5
  end
@@ -5,9 +5,6 @@
5
5
  "fonts/ionicons.ttf?v=3.0.0-alpha.3": "fonts/ionicons.ttf",
6
6
  "fonts/ionicons.woff2?v=3.0.0-alpha.3": "fonts/ionicons.woff2",
7
7
  "fonts/ionicons.woff?v=3.0.0-alpha.3": "fonts/ionicons.woff",
8
- "main-f7c7f445c53544d2d7b8.css.gz": "main-f7c7f445c53544d2d7b8.css.gz",
9
- "main-f7c7f445c53544d2d7b8.js.LICENSE.txt": "main-f7c7f445c53544d2d7b8.js.LICENSE.txt",
10
- "main-f7c7f445c53544d2d7b8.js.gz": "main-f7c7f445c53544d2d7b8.js.gz",
11
- "main.css": "main-f7c7f445c53544d2d7b8.css",
12
- "main.js": "main-f7c7f445c53544d2d7b8.js"
8
+ "main.css": "main-80be7992f1d3b992e2dc.css",
9
+ "main.js": "main-80be7992f1d3b992e2dc.js"
13
10
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
@@ -213,8 +213,8 @@ files:
213
213
  - lib/motor/ui_configs.rb
214
214
  - lib/motor/version.rb
215
215
  - ui/dist/fonts/ionicons.woff2
216
- - ui/dist/main-f7c7f445c53544d2d7b8.css.gz
217
- - ui/dist/main-f7c7f445c53544d2d7b8.js.gz
216
+ - ui/dist/main-729641083f64367ce9aa.css.gz
217
+ - ui/dist/main-729641083f64367ce9aa.js.gz
218
218
  - ui/dist/manifest.json
219
219
  homepage:
220
220
  licenses: