Class: Relay::Routes::ThemeStylesheet
- Defined in:
- app/routes/theme_stylesheet.rb
Instance Method Summary collapse
-
#call(_id) ⇒ String
Serves the Relay theme stylesheet.
Methods inherited from Base
#cache, #htmx?, #params, #root
Methods included from Concerns::View
#cancellable?, #context_window, #format_cost, #format_name, #initials, #markdown, #status_bar, #theme, #theme_href
Methods included from Concerns::Roda
#initialize, #method_missing, #r, #respond_to_missing?
Methods included from Concerns::Context
#contexts, #ctx, #current_context, #default_context, #default_model, #llm, #llms, #mcps, #model, #models, #normalize_model, #provider, #sync_context!, #user, #valid_model?
Methods included from Concerns::Attachment
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Relay::Concerns::Roda
Instance Method Details
#call(_id) ⇒ String
Serves the Relay theme stylesheet.
8 9 10 11 |
# File 'app/routes/theme_stylesheet.rb', line 8 def call(_id) response["Content-Type"] = "text/css; charset=utf-8" File.read(Relay.theme_path) end |