rails_admin_settings 0.6.0 → 0.6.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57658fd2928a77d8a69898ac2ff336d9e7f23e53
|
4
|
+
data.tar.gz: 0d405cef62c4a0c3510c58cf6351789810506df9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d91de52bed3eae39ac6fadc8acc3660c22aafdf40fc6d0a7308ac3efc75503e3147eb1d3ceae5c2abf48c41093cc62e2f4632a25c7304a3f288769554a99962c
|
7
|
+
data.tar.gz: ec2eee814918a600f63fb69c92cfcbf77fc68cff9357e696b477b9f85387eb44305dc79eeb0dcce05836eb7a8fd8c9304e377f01ad3bc7a4c0889a2c7fcae3df
|
@@ -12,7 +12,7 @@ module RailsAdminSettings
|
|
12
12
|
end
|
13
13
|
|
14
14
|
field :enabled, type: Mongoid::VERSION.to_i < 4 ? Boolean : Mongoid::Boolean, default: true
|
15
|
-
scope :enabled, where(enabled: true)
|
15
|
+
scope :enabled, -> { where(enabled: true) }
|
16
16
|
|
17
17
|
field :type, type: String, default: RailsAdminSettings.types.first
|
18
18
|
|