motor-admin 0.2.65 → 0.2.68

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: d988c2448db90f884c97394de1079e3c86f6d46c0772bff8aafc104d726997c1
4
- data.tar.gz: 0dcafa4a6ef34e5d0cb01a60b79c06714585826fbd1e8e41ec29c1c40fd4134d
3
+ metadata.gz: bb174ffc114c2f0f9ecdb0d1b03d81747ba71fee2d332dab70730256b59543c7
4
+ data.tar.gz: 3bd3a2c65424ab782bf5e67985e9cc01638f516dd0bb16b8d04c9c43cf6358c9
5
5
  SHA512:
6
- metadata.gz: 9eefe679ba5afcbcd79fd3a7f4050b227112d7b8e3f337982049c59f3ce935fcf63d3764742d73d28d0033cdaae0fae38eb0a650c379f6f543f9f36dc7f0ac8b
7
- data.tar.gz: aaad6d3fb9a38492fa71df7c4a2f80c58d4b22161c7f835d81aa58f723e53e71b726a960c3e80f67d6a0ff503aecf5b9ffa9c992ab1c8c259542d4cde67bf571
6
+ metadata.gz: c5034a5834c324421487fffcb23e4f33fc487366996c4692b718a11df579022ee7feb596503100e03251846da7e73ca00e5ce08e0ceae072534c3c42971cadd6
7
+ data.tar.gz: 954f0668eba4b17c52e58a4bfb7175ca92dc6e9c97638056aa2c850b2b5469b6bd064cbbfdeac657bde9daf23067633aeb555340a2ccff19198f6f086ade7549
@@ -31,7 +31,7 @@ module Motor
31
31
 
32
32
  @resource = @associated_resource
33
33
  else
34
- @resource.public_send(params[:association].to_sym).create!(@associated_resource.attributes) do |resource|
34
+ @resource.public_send(params[:association].to_sym).create!(resource_params) do |resource|
35
35
  @resource = resource
36
36
  end
37
37
  end
@@ -302,6 +302,8 @@ el:
302
302
  on_collection: Κατά τη συλλογή
303
303
  association: Σύνδεση
304
304
  action_has_been_removed: Η ενέργεια αυτή έχει καταργηθεί
305
+ html: HTML
306
+ edit_html: Edit HTML
305
307
  i:
306
308
  locale: el
307
309
  select:
@@ -307,3 +307,5 @@ en:
307
307
  every_minute: Every minute
308
308
  every_5_minutes: Every 5 minutes
309
309
  do_not_refresh: Do not refresh
310
+ html: HTML
311
+ edit_html: Edit HTML
@@ -302,6 +302,8 @@ es:
302
302
  on_collection: En la colección
303
303
  association: Asociación
304
304
  action_has_been_removed: Esta acción ha sido eliminada
305
+ html: HTML
306
+ edit_html: Edit HTML
305
307
  i:
306
308
  locale: es
307
309
  select:
@@ -298,6 +298,8 @@ pt:
298
298
  on_collection: Na coleção
299
299
  association: Associação
300
300
  action_has_been_removed: Esta ação foi removida
301
+ html: HTML
302
+ edit_html: Edit HTML
301
303
  i:
302
304
  locale: pt
303
305
  select:
@@ -137,6 +137,7 @@ module Motor
137
137
  validators: fetch_validators(model, column.name),
138
138
  reference: nil,
139
139
  format: fetch_format_hash(column, model),
140
+ description: '',
140
141
  virtual: false
141
142
  }
142
143
  end
@@ -65,7 +65,8 @@ module Motor
65
65
  default_value: nil,
66
66
  reference: nil,
67
67
  format: {},
68
- validators: []
68
+ validators: [],
69
+ description: ''
69
70
  }.with_indifferent_access
70
71
 
71
72
  ACTION_DEFAULTS = {
@@ -5,7 +5,7 @@ module Motor
5
5
  RESOURCE_ATTRS = %w[display_name display_column icon custom_sql visible display_primary_key
6
6
  searchable_columns].freeze
7
7
  COLUMN_ATTRS = %w[name display_name column_type access_type default_value reference virtual format
8
- validators].freeze
8
+ validators description].freeze
9
9
  ASSOCIATION_ATTRS = %w[name display_name model_name icon visible foreign_key primary_key options virtual
10
10
  polymorphic slug].freeze
11
11
  SCOPE_ATTRS = %w[name display_name scope_type preferences visible].freeze
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.2.65'
4
+ VERSION = '0.2.68'
5
5
  end
@@ -2601,9 +2601,9 @@
2601
2601
  "icons/zoom-out.svg.gz": "icons/zoom-out.svg.gz",
2602
2602
  "icons/zoom-question.svg": "icons/zoom-question.svg",
2603
2603
  "icons/zoom-question.svg.gz": "icons/zoom-question.svg.gz",
2604
- "main-dd37c08915724e2219f5.css.gz": "main-dd37c08915724e2219f5.css.gz",
2605
- "main-dd37c08915724e2219f5.js.LICENSE.txt": "main-dd37c08915724e2219f5.js.LICENSE.txt",
2606
- "main-dd37c08915724e2219f5.js.gz": "main-dd37c08915724e2219f5.js.gz",
2607
- "main.css": "main-dd37c08915724e2219f5.css",
2608
- "main.js": "main-dd37c08915724e2219f5.js"
2604
+ "main-f0622588acc207c89190.css.gz": "main-f0622588acc207c89190.css.gz",
2605
+ "main-f0622588acc207c89190.js.LICENSE.txt": "main-f0622588acc207c89190.js.LICENSE.txt",
2606
+ "main-f0622588acc207c89190.js.gz": "main-f0622588acc207c89190.js.gz",
2607
+ "main.css": "main-f0622588acc207c89190.css",
2608
+ "main.js": "main-f0622588acc207c89190.js"
2609
2609
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.65
4
+ version: 0.2.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-13 00:00:00.000000000 Z
11
+ date: 2022-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -1534,8 +1534,8 @@ files:
1534
1534
  - ui/dist/icons/zoom-money.svg.gz
1535
1535
  - ui/dist/icons/zoom-out.svg.gz
1536
1536
  - ui/dist/icons/zoom-question.svg.gz
1537
- - ui/dist/main-dd37c08915724e2219f5.css.gz
1538
- - ui/dist/main-dd37c08915724e2219f5.js.gz
1537
+ - ui/dist/main-f0622588acc207c89190.css.gz
1538
+ - ui/dist/main-f0622588acc207c89190.js.gz
1539
1539
  - ui/dist/manifest.json
1540
1540
  homepage:
1541
1541
  licenses:
@@ -1558,7 +1558,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1558
1558
  - !ruby/object:Gem::Version
1559
1559
  version: '0'
1560
1560
  requirements: []
1561
- rubygems_version: 3.2.3
1561
+ rubygems_version: 3.3.3
1562
1562
  signing_key:
1563
1563
  specification_version: 4
1564
1564
  summary: Low-code Admin panel and Business intelligence