-
-
Notifications
You must be signed in to change notification settings - Fork 40
Skip Tilt
Janko Marohnić edited this page Aug 29, 2023
·
1 revision
Rodauth uses Roda's render plugin for rendering the default view & email templates, which in turn depends on the Tilt gem. In Rails applications, you're expected to have custom view & email templates that will be rendered by Rails, but Roda rendering is still turned on by default so that everything still works without custom templates.
If you've set up every view & email template to be rendered by Rails, you can pass the render: false
option to Rodauth to skip loading Roda's render plugin and Tilt:
class RodauthApp < Rodauth::Rails::App
configure RodauthMain, render: false
configure RodauthAdmin, :admin, render: false
end
Or if you're using Rodauth as a library:
RodauthMain = Rodauth::Rails.lib(render: false) do
# ...
end