motor-admin 0.1.79 → 0.1.84

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: 7b841037fa7bac35c33d7ea38b1e05585c456a8e61fed5d5eb7b4ae0ecde6ed9
4
- data.tar.gz: 7f8193bfd42d1f7ae190aa79e34d14452122f7a48d8799f5f63f3b3ab2573250
3
+ metadata.gz: 1ac7cf4bffeffc5973baea2c6adfb2d8781546b389a908aee03c2b3bb1639db2
4
+ data.tar.gz: ab9a39a85a883deb1d777d0a292e39c426ac0309b0e1a77aaf573900e3268b8a
5
5
  SHA512:
6
- metadata.gz: 79395bd66cb4a9851f45cec3eb1eacfb7e86901bc89876df70f2916d2b3be3209554b4c678e7ef006be3d2cd60813d1bf9c3f86f6fb368ec503f6dbf740b4e0a
7
- data.tar.gz: 79b08ab6b82dd1393ab47977b81592d21129e7da6a133bbad154552ef3f3a08452f35d1f2d52cfd61b010a1d528872e0c3d718cb7c2e7d674ca56c8d4b653946
6
+ metadata.gz: b1b614e26bee3647df8807512a370ea14a1cc756c4942ac140b0369897944e7acd2f3391b80ab36a1f4fa4ead8f034cabe87b664dd62c5997e098e5212790d6f
7
+ data.tar.gz: 7b9997e555f7bdaa85f4c348b1ec91366c96b14a82cdfe26bf81b2d2c05615a11aa0016923f19148b2077bb8e525fd8e208faf1a292aa8086754c7a8702f9bd6
@@ -228,3 +228,6 @@ en:
228
228
  color: Color
229
229
  link_text: Link text
230
230
  copied_to_the_clipboard: Copied to the clipboard
231
+ queries_can_contain_variable_via_syntax_html: "Queries can contain embed variables using <code>{{variable}}</code> syntax:"
232
+ syntax_is_used_for_if_and_if_not_conditions_html: "<code>{{#variable}} ... {{/variable}}</code> and <code>{{^variable}} ... {{variable}}</code> syntax is used for <code>if</code> and <code>if not</code> conditions respectively:"
233
+ current_user_variables_are_always_passed_explicitly_and_can_he_used_html: "<code>{{current_user_id}}</code> and <code>{{current_user_email}}</code> variables are always passed explicitly, and can be used to decide which data should be displayed for certain user:"
@@ -228,6 +228,9 @@ es:
228
228
  color: Color
229
229
  link_text: Texto del enlace
230
230
  copied_to_the_clipboard: Copiado al portapapeles
231
+ queries_can_contain_variable_via_syntax_html: "Queries can contain embed variables using <code>{{variable}}</code> syntax:"
232
+ syntax_is_used_for_if_and_if_not_conditions_html: "<code>{{#variable}} ... {{/variable}}</code> and <code>{{^variable}} ... {{variable}}</code> syntax is used for <code>if</code> and <code>if not</code> conditions respectively:"
233
+ current_user_variables_are_always_passed_explicitly_and_can_he_used_html: "<code>{{current_user_id}}</code> and <code>{{current_user_email}}</code> variables are always passed explicitly, and can be used to decide which data should be displayed for certain user:"
231
234
  i:
232
235
  locale: es
233
236
  select:
@@ -132,8 +132,13 @@ module Motor
132
132
  return DEFAULT_CURRENCY_FORMAT_HASH if column.name == 'price'
133
133
 
134
134
  inclusion_validator, = model.validators_on(column.name).grep(ActiveModel::Validations::InclusionValidator)
135
+
135
136
  return { select_options: inclusion_validator.send(:delimiter) } if inclusion_validator
136
137
 
138
+ enum = model.defined_enums[column.name]
139
+
140
+ return { select_options: enum.keys } if enum
141
+
137
142
  {}
138
143
  end
139
144
 
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.79'
4
+ VERSION = '0.1.84'
5
5
  end
@@ -2068,11 +2068,11 @@
2068
2068
  "mail-opened.svg": "icons/mail-opened.svg",
2069
2069
  "mail.svg": "icons/mail.svg",
2070
2070
  "mailbox.svg": "icons/mailbox.svg",
2071
- "main-020e3e4224d68b4536bc.css.gz": "main-020e3e4224d68b4536bc.css.gz",
2072
- "main-020e3e4224d68b4536bc.js.LICENSE.txt": "main-020e3e4224d68b4536bc.js.LICENSE.txt",
2073
- "main-020e3e4224d68b4536bc.js.gz": "main-020e3e4224d68b4536bc.js.gz",
2074
- "main.css": "main-020e3e4224d68b4536bc.css",
2075
- "main.js": "main-020e3e4224d68b4536bc.js",
2071
+ "main-952ac0b8833058e40050.css.gz": "main-952ac0b8833058e40050.css.gz",
2072
+ "main-952ac0b8833058e40050.js.LICENSE.txt": "main-952ac0b8833058e40050.js.LICENSE.txt",
2073
+ "main-952ac0b8833058e40050.js.gz": "main-952ac0b8833058e40050.js.gz",
2074
+ "main.css": "main-952ac0b8833058e40050.css",
2075
+ "main.js": "main-952ac0b8833058e40050.js",
2076
2076
  "man.svg": "icons/man.svg",
2077
2077
  "manual-gearbox.svg": "icons/manual-gearbox.svg",
2078
2078
  "map-2.svg": "icons/map-2.svg",
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.1.79
4
+ version: 0.1.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -1495,8 +1495,8 @@ files:
1495
1495
  - ui/dist/icons/zoom-money.svg.gz
1496
1496
  - ui/dist/icons/zoom-out.svg.gz
1497
1497
  - ui/dist/icons/zoom-question.svg.gz
1498
- - ui/dist/main-020e3e4224d68b4536bc.css.gz
1499
- - ui/dist/main-020e3e4224d68b4536bc.js.gz
1498
+ - ui/dist/main-952ac0b8833058e40050.css.gz
1499
+ - ui/dist/main-952ac0b8833058e40050.js.gz
1500
1500
  - ui/dist/manifest.json
1501
1501
  homepage:
1502
1502
  licenses: