-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dedicated configuration for skipping Tilt
Having to pass `render: false` when registering Rodauth configurations can be a bit awkward when the developer isn't otherwise exposed with Rodauth being a Roda plugin. Moreover, it can be cumbersome, because it needs to be passed for every Rodauth configuration. Having dedicated configuration makes it much more straighforward to skip Tilt, and this way it doesn't get mixed with things that actually affect authentication behavior or calling Rodauth methods.
- Loading branch information
Showing
4 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
lib/generators/rodauth/templates/config/initializers/rodauth.rb.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Rodauth::Rails.configure do |config| | ||
config.app = "RodauthApp" | ||
# config.middleware = false # disable auto-insertion of Rodauth middleware | ||
# config.tilt = false # skip loading Tilt gem for rendering built-in templates | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters