23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/ibrain/auth/engine.rb', line 23
def self.fallback_on_unauthorized?
return false unless Ibrain::Config.respond_to?(:fallback_on_unauthorized)
if Ibrain::Config.fallback_on_unauthorized
true
else
Ibrain::Deprecation.warn " Having Ibrain::Config.fallback_on_unauthorized set\n to `false` is deprecated and will not be supported.\n Please change this configuration to `true` and be sure that your\n application does not break trying to redirect back when there is\n an unauthorized access.\n WARN\n\n false\n end\nend\n".strip_heredoc, caller
|