Skip to content

Commit

Permalink
Merge pull request #4 from thoughtbot/add-note-about-superglue-option
Browse files Browse the repository at this point in the history
Add note about superglue_template
  • Loading branch information
jho406 authored Feb 15, 2025
2 parents 9840c9d + 291a710 commit 172c9dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/generators/superglue/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def create_files
def insert_jsx_rendering_defaults
inject_into_file "app/controllers/application_controller.rb", after: "class ApplicationController < ActionController::Base\n" do
<<-RUBY
# Enables Superglue rendering defaults for sensible view directories.
# Enables Superglue rendering defaults for sensible view directories.
#
# without `use_jsx_rendering_defaults`:
#
Expand All @@ -71,6 +71,12 @@ def insert_jsx_rendering_defaults
# ```
#
# 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"
RUBY
end
Expand Down

0 comments on commit 172c9dc

Please sign in to comment.