Class: Turnout::MaintenancePage::JSON
- Inherits:
-
Base
- Object
- Base
- Turnout::MaintenancePage::JSON
show all
- Defined in:
- lib/turnout/maintenance_page/json.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#custom_path, #extension, #initialize, #media_types, #rack_response
Class Method Details
.extension ⇒ Object
21
22
23
|
# File 'lib/turnout/maintenance_page/json.rb', line 21
def self.extension
'json'
end
|
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/turnout/maintenance_page/json.rb', line 10
def self.media_types
%w{
application/json
text/json
application/x-javascript
text/javascript
text/x-javascript
text/x-json
}
end
|
Instance Method Details
#reason ⇒ Object
6
7
8
|
# File 'lib/turnout/maintenance_page/json.rb', line 6
def reason
super.to_s.to_json
end
|