softwear-lib 3.3.5 → 3.3.6

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: 061c8fef433bb6d6ba33834ed5e769907dd54722
4
- data.tar.gz: ff88cfad72f88e87eca1360c9cba5ae0df211e9a
3
+ metadata.gz: 382577d8ccba0d4d4c2711feb33d9b8970074175
4
+ data.tar.gz: 9ed5aaf50588622a7689a7cef209e528dda78fdd
5
5
  SHA512:
6
- metadata.gz: 644e51672e6d4517e81f28bb1bfdf666b1fd6abcdf32b95378a1bf07dbda5030fafd1a5a3bb64553cd4d5da781d2039cc4d2aefb229c738d46f58d428a7ba4f5
7
- data.tar.gz: 941059409053e3f121070319f85c7b5f8c14d6b8d04cde00cd17a94ad6172a69c0566b98c5446489890ac5295d7f0598b38ba80fcc11585c586e4fb9beb15e65
6
+ metadata.gz: a08960472e9cbc6c784497f799beacfe083c7008aaffa3e88c05cd9a0219626230aef81b885a98cfd12db5f679eb9b2d61c6db41e17e721afeea6ba69af1f832
7
+ data.tar.gz: 4b523435da1f1d9891cbf8ed8991c2abd4bd40ecadea678ce33a204f2737a3222cd1d677a4a0bbc833c85d28f12a301299b19eafdd069b87da4ab00dcfb3c0aa
@@ -26,6 +26,7 @@ module Softwear
26
26
  @additional_info = gather_additional_info
27
27
 
28
28
  begin
29
+ Rails.logger.error "WTF THIS NO WORKY! THIS IS THE LAYOUT: #{layout_for_error}"
29
30
  respond_to do |format|
30
31
  format.html { render 'softwear/errors/internal_server_error', layout: layout_for_error, status: 500 }
31
32
  format.js { render 'softwear/errors/internal_server_error', layout: layout_for_error, status: 500 }
@@ -67,15 +68,7 @@ module Softwear
67
68
 
68
69
  def layout_for_error
69
70
  user = try(:current_user) || @current_user
70
- partner = Figaro.env.partner_namespace
71
-
72
- if user
73
- "application"
74
- elsif !partner.nil? && request.url.include?(partner)
75
- "partners/application"
76
- else
77
- "no_overlay"
78
- end
71
+ user ? "application" : "no_overlay"
79
72
  end
80
73
  end
81
74
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Library
3
- VERSION = "3.3.5"
3
+ VERSION = "3.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.5
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie