motor-admin 0.2.21 → 0.2.22

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: a6fc72d7b1968213aa4845a2df527a839baeff558af4676719eaf8ea3f8ddc93
4
- data.tar.gz: fdc2e35bbdead105ff8e92f90f7b172320941f7ca92af085918517ea27c6eb52
3
+ metadata.gz: ed518fa82c6c64047a2cafd677f6e749314e3a38a055ec752cb71b082228e1c6
4
+ data.tar.gz: 87a804c67093186a0f72ff236b25016614f3e820326404337dd097f0d5672103
5
5
  SHA512:
6
- metadata.gz: fe3ff74c52022c83a4e51c1bdb67b0fe7239f644c1b2d70ad689bb70850a9d1955f5abfe2e92e237b936d01177847e7ac2197e492b024cfc52fbc5b15a07e793
7
- data.tar.gz: 00c722957541fcb93b3f22d3c3ed59da71b39517cb9f0f0631990c80f5ae50963a57a26b656d95460175936a6f1214e9bf5185c0f5dfc44aab6252731eccda9d
6
+ metadata.gz: 16aff2d26bf9c99340e1af7ac17c889f5ad421cdcd9adbeda0b6590c5421c6e1a92ed354d79a048600488de4bb6384f35bba766d6c266371805d97a44ae57734
7
+ data.tar.gz: a9e5b0ca229032349ef8f863dfd0f495047a73d7c0f19bce4f2f8c4df12fc22a705eb8dfa36d6549baf161b3a1385407e7fc74eb7b9674bca3b2b2e54c0846e8
@@ -4,7 +4,7 @@ module Motor
4
4
  module CurrentAbility
5
5
  def current_ability
6
6
  @current_ability ||=
7
- if defined?(Motor::Ability) && current_user
7
+ if defined?(Motor::Ability)
8
8
  klass = Motor::Ability.dup.tap do |k|
9
9
  k.prepend(Motor::CancanUtils::AbilityPatch)
10
10
  end
@@ -142,7 +142,10 @@ module Motor
142
142
 
143
143
  return { select_options: enum.keys } if enum
144
144
 
145
- return { number_format: true } if !column.name.ends_with?('_id') && %i[integer float].include?(column.type)
145
+ return {} if column.name == 'year'
146
+
147
+ return { number_format: true } if !column.name.match?(/_(?:id|year)\z/) &&
148
+ %i[integer float].include?(column.type)
146
149
 
147
150
  {}
148
151
  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.2.21'
4
+ VERSION = '0.2.22'
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-fa2bc70ab29bad641f1a.css.gz": "main-fa2bc70ab29bad641f1a.css.gz",
2605
- "main-fa2bc70ab29bad641f1a.js.LICENSE.txt": "main-fa2bc70ab29bad641f1a.js.LICENSE.txt",
2606
- "main-fa2bc70ab29bad641f1a.js.gz": "main-fa2bc70ab29bad641f1a.js.gz",
2607
- "main.css": "main-fa2bc70ab29bad641f1a.css",
2608
- "main.js": "main-fa2bc70ab29bad641f1a.js"
2604
+ "main-6570149f716eae327cdc.css.gz": "main-6570149f716eae327cdc.css.gz",
2605
+ "main-6570149f716eae327cdc.js.LICENSE.txt": "main-6570149f716eae327cdc.js.LICENSE.txt",
2606
+ "main-6570149f716eae327cdc.js.gz": "main-6570149f716eae327cdc.js.gz",
2607
+ "main.css": "main-6570149f716eae327cdc.css",
2608
+ "main.js": "main-6570149f716eae327cdc.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.21
4
+ version: 0.2.22
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-11-08 00:00:00.000000000 Z
11
+ date: 2021-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -1525,8 +1525,8 @@ files:
1525
1525
  - ui/dist/icons/zoom-money.svg.gz
1526
1526
  - ui/dist/icons/zoom-out.svg.gz
1527
1527
  - ui/dist/icons/zoom-question.svg.gz
1528
- - ui/dist/main-fa2bc70ab29bad641f1a.css.gz
1529
- - ui/dist/main-fa2bc70ab29bad641f1a.js.gz
1528
+ - ui/dist/main-6570149f716eae327cdc.css.gz
1529
+ - ui/dist/main-6570149f716eae327cdc.js.gz
1530
1530
  - ui/dist/manifest.json
1531
1531
  homepage:
1532
1532
  licenses: