Class: Rage::Configuration::PublicFileServer

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean

Configure whether Rage should serve static files from the public directory. Defaults to false.

Examples:

Rage.configure do
  config.public_file_server.enabled = true
end

Returns:

  • (Boolean)

    whether the static file server is enabled



569
570
571
# File 'lib/rage/configuration.rb', line 569

def enabled
  @enabled
end