class Graphql::Dashboard::StaticsController
Constants
- STATICS
-
Use an explicit list of files to avoid any chance of reading other files from disk
Public Instance Methods
Source
# File lib/graphql/dashboard/statics_controller.rb, line 22 def show expires_in 1.year, public: true if (filepath = STATICS[params[:id]]) render file: filepath else head :not_found end end