que-view 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/que/view/application_controller.rb +3 -3
- data/lib/que/view/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9576dbcacaced63da0924a3315af1dede11887b6dcfdbca1029356691cd1dd02
|
4
|
+
data.tar.gz: abb8d73cfb96eda19ce45fe767edb91e57b9be595242c0a802503d0e16c3dc31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44bde7cb0ffd37a3f7ec82dd85639c961a5cf10aab179b75a7f1ea02edc5e432cd1f9655a204f6d16e6d3addeb9d50ffc79df5b8b51d8b01d335433f8d1587a
|
7
|
+
data.tar.gz: fe3ada013eff8f6660126c56975e68e663f5c85ab2cd32957c4306e0c419d2285156604262677e02039c289cb22cf0921ca5541781dbb7b2efed1feec186c60e
|
@@ -3,14 +3,14 @@
|
|
3
3
|
module Que
|
4
4
|
module View
|
5
5
|
class ApplicationController < ActionController::Base
|
6
|
-
http_basic_authenticate_with name: ::Que::
|
7
|
-
password: ::Que::
|
6
|
+
http_basic_authenticate_with name: ::Que::View.configuration.ui_username,
|
7
|
+
password: ::Que::View.configuration.ui_password,
|
8
8
|
if: -> { basic_auth_enabled? }
|
9
9
|
|
10
10
|
private
|
11
11
|
|
12
12
|
def basic_auth_enabled?
|
13
|
-
configuration = ::Que::
|
13
|
+
configuration = ::Que::View.configuration
|
14
14
|
|
15
15
|
return false if configuration.ui_username.blank?
|
16
16
|
return false if configuration.ui_password.blank?
|
data/lib/que/view/version.rb
CHANGED