-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplication_controller.rb
More file actions
33 lines (31 loc) · 823 Bytes
/
application_controller.rb
File metadata and controls
33 lines (31 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class ApplicationController < ActionController::Base
# Enables Superglue rendering defaults for sensible view directories.
#
# without `use_jsx_rendering_defaults`:
#
# ```
# app/views/posts/
# - index.jsx
# - index.json.props
# - index.html.erb
# ```
#
# with `use_jsx_rendering_defaults`:
#
# ```
# app/views/posts/
# - index.jsx
# - index.json.props
# ```
#
before_action :use_jsx_rendering_defaults
#
#
# The html template used when `use_jsx_rendering_defaults` is enabled.
# Defaults to "application/superglue".
#
# superglue_template "application/superglue"
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
# allow_browser versions: :modern
superglue_template "application/superglue"
end