apidae 2.1.1 → 2.1.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
  SHA256:
3
- metadata.gz: aad214b7100d75cda0a1f617c9fb28577271384563a401e88e0495a610e6aeb4
4
- data.tar.gz: 81238337e264ed04bec2ef961716ec37dafaa61340b23910d72d93a2efe7f45c
3
+ metadata.gz: e24248296ca4edcff1a4f360921295e551fc2995a18cd1488143f88d6618312a
4
+ data.tar.gz: 11321235c809d393033bb88b2e8a9685e1e6b0563b4d9c10f49fed00d2ee7cf0
5
5
  SHA512:
6
- metadata.gz: e015255a09cba0290f1804d337f4d2444c6f4a33d4e425e6806d57c9636b9d634f0f07aa879ee990eb7ac1d9e9ef69b296f5463e6e5f7a3aa722d9085f029b2d
7
- data.tar.gz: 1713869c72c8c7be44e7004f7beafdf46a428d72bb6b9a7d0e5ad843173e0b1e0fe2923709044b0e3c66a04024182b5d2c3f1fe648a4a54bca94e1446a3a4492
6
+ metadata.gz: b8ba77cbaf8380a174e3d11ac6afd931a9841ae437a3be97c0e948509ac320a02dae01c563d111ae2fa4188112b506ed862d25b8df933e4236338deb0805fbc2
7
+ data.tar.gz: 3cbd3c08df1861633aaa6ba14be8ec93c8970adaeb9b1e29fb75aa563f4de565ea56eb0da32a61eba9012da8f0382020f6264148908c19c835d925a3cf7b2575
@@ -5,7 +5,11 @@ module Apidae
5
5
  before_action :check_user_data!
6
6
 
7
7
  def apidae_user
8
- send(Rails.application.config.apidae_user) if Rails.application.config.respond_to?(:apidae_user)
8
+ if Rails.application.config.respond_to?(:apidae_user)
9
+ Rails.application.config.apidae_user.respond_to?(:call) ? Rails.application.config.apidae_user.call : send(Rails.application.config.apidae_user)
10
+ else
11
+ nil
12
+ end
9
13
  end
10
14
 
11
15
  def user_is_admin?
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain