c80_contest 0.1.2 → 0.1.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
  SHA1:
3
- metadata.gz: 83d252fc69b885e1bc70a92464817b20cdc39d1a
4
- data.tar.gz: cb5a10d7604d9fb1fa3b604a2143584d5a13d5d6
3
+ metadata.gz: f616dabdda852134cf837b8aa51574041625b4f6
4
+ data.tar.gz: 972821f98c47129fd72de0c5b11a960bc6f6e58d
5
5
  SHA512:
6
- metadata.gz: 12a31fc40295304bf3c8e7a566940ae0b39db400e99cc77da75832eee90ce0dd90fab1e8dce37e3e8ccd7567fe97186b2e0e9ec43a0eac476e00912682c1f453
7
- data.tar.gz: 392a997ee618f89c34040c73666e91e654ec1712b427ca62a5d8add90d582a96b3defaad01283aa9a5c550c4f4a1eb37666f7b6dff9ef2d9843052302617df82
6
+ metadata.gz: 2c231ddf601ed7c56c9fd67d29eb199c017242152572a28c39be696ba6e09665ec3a4d910eccecbea920a063c56f66a78def88d8e09cbed6558cc55e5889cfe5
7
+ data.tar.gz: d821e43972126c194618e6c0518fc85e98eec98268ea21c76aba07e5372026d07c7f02a18f2fa1589d02cb5044b50e8ae25a5caa44318bc98b7685107baff02e
@@ -1,8 +1,12 @@
1
1
  ActiveAdmin.register C80Contest::Bid, :as => 'Bid' do
2
2
 
3
3
  if ActiveRecord::Base.connection.table_exists?('c80_contest_settings')
4
- menu :parent => C80Contest::Setting.first.admin_label_menu,
5
- :label => C80Contest::Setting.first.admin_label_bids if C80Contest::Setting.first.present?
4
+ begin
5
+ menu :parent => C80Contest::Setting.first.admin_label_menu,
6
+ :label => C80Contest::Setting.first.admin_label_bids if C80Contest::Setting.first.present?
7
+ rescue NoMethodError => e # NOTE:: ошибка возникает во время миграции
8
+ puts "[TRACE] <Admin.Bids> #{e}"
9
+ end
6
10
  end
7
11
 
8
12
  config.sort_order = 'created_at_desc'
@@ -2,8 +2,12 @@ if defined?(ActiveAdmin)
2
2
  ActiveAdmin.register C80Contest::Setting do
3
3
 
4
4
  if ActiveRecord::Base.connection.table_exists?('c80_contest_settings')
5
- menu :parent => C80Contest::Setting.first.admin_label_menu,
6
- :label => C80Contest::Setting.first.admin_label_settings if C80Contest::Setting.first.present?
5
+ begin
6
+ menu :parent => C80Contest::Setting.first.admin_label_menu,
7
+ :label => C80Contest::Setting.first.admin_label_settings if C80Contest::Setting.first.present?
8
+ rescue NoMethodError => e # NOTE:: ошибка возникает во время миграции
9
+ puts "[TRACE] <Admin.settings> #{e}"
10
+ end
7
11
  end
8
12
 
9
13
  # noinspection RubyResolve
@@ -1,3 +1,3 @@
1
1
  module C80Contest
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c80_contest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A