rails_admin_settings 0.9.0.pre → 0.9.0.pre.2

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: 77ff229c1b71b0265ce4d23d2da8853c6cbb9203
4
- data.tar.gz: d86ab6c49fefb97a5582a1b7d1c13c2c6d568f66
3
+ metadata.gz: 1dec3621f9328363866b05ce71e7afec9e603905
4
+ data.tar.gz: 0a7262eafd927782427cbfa4e489c41ef8516fad
5
5
  SHA512:
6
- metadata.gz: 31ea6d4cad521443024a0572e8cb3b10b7488d4afe9e5bb3da691aa31d9b0034f6282891af3e9928d046aa69b20432ac6ba47ca8e4e0d9fd2f1100aa326437bf
7
- data.tar.gz: c1d935b38d5564e0cf5514b8180807f5adbe27adcf95c5a76649c2f8f8c764c89eb509f96422b1306c801fcbab719fdac8f23b544e67397d68abc61c0d16fe48
6
+ metadata.gz: 6ec04bd967a7c35c0a93719e878d9d64b4f4fb6ff49162fb798da92df51ba2dfe3d705e6050ffa5606735d0adda479bfd52d08ab45e32234ba860232c2217c97
7
+ data.tar.gz: ec48fd8a342b762e59b83214f5df5055a4274bf609b349bcb1b2f87d9fd5228e51b860bc9894d279967f90a5f8297edbf6465284853c8344824b1161f4996d8d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_admin_settings (0.9.0.pre)
4
+ rails_admin_settings (0.9.0.pre.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -37,7 +37,7 @@ class Settings < BasicObject
37
37
  end
38
38
 
39
39
  def table_exists?
40
- RailsAdminSettings::Setting.table_exists?
40
+ RailsAdminSettings.mongoid? || RailsAdminSettings::Setting.table_exists?
41
41
  end
42
42
 
43
43
  def unload!
@@ -10,8 +10,8 @@ module RailsAdminSettings
10
10
  Settings.file_uploads_supported = true
11
11
  Settings.file_uploads_engine = :carrierwave
12
12
  # mongoid-paperclip
13
- elsif RailsAdminSettings.mongoid? && Mongoid.const_defined?('Paperclip')
14
- base.send(:include, Mongoid::Paperclip)
13
+ elsif RailsAdminSettings.mongoid? && ::Mongoid.const_defined?('Paperclip')
14
+ base.send(:include, ::Mongoid::Paperclip)
15
15
  # puts "[rails_admin_settings] PaperClip detected"
16
16
  base.field(:file, type: String)
17
17
  if defined?(Rails)
@@ -1,4 +1,4 @@
1
1
  module RailsAdminSettings
2
- VERSION = "0.9.0.pre"
2
+ VERSION = "0.9.0.pre.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre
4
+ version: 0.9.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv