Module: StaticRails
- Defined in:
- lib/static-rails.rb,
lib/static-rails/site.rb,
lib/static-rails/error.rb,
lib/static-rails/server.rb,
lib/static-rails/compile.rb,
lib/static-rails/railtie.rb,
lib/static-rails/version.rb,
lib/static-rails/file_handler.rb,
lib/static-rails/server_store.rb,
lib/static-rails/configuration.rb,
lib/static-rails/gets_csrf_token.rb,
lib/static-rails/site_middleware.rb,
lib/static-rails/proxy_middleware.rb,
lib/static-rails/rack_server_check.rb,
lib/static-rails/static_middleware.rb,
lib/static-rails/validates_csrf_token.rb,
lib/static-rails/waits_for_connection.rb,
lib/static-rails/site_plus_csrf_middleware.rb,
lib/static-rails/matches_request_to_static_site.rb,
lib/generators/static_rails/initializer_generator.rb,
lib/static-rails/request_forgery_protection_fallback.rb,
lib/static-rails/determines_whether_to_handle_request.rb
Defined Under Namespace
Modules: Generators, RequestForgeryProtectionFallback
Classes: CompilesSites, Configuration, DeterminesWhetherToHandleRequest, Error, FileHandler, GetsCsrfToken, MatchesRequestToStaticSite, ProxyMiddleware, RackServerCheck, Railtie, Server, ServerStore, Site, SiteMiddleware, SitePlusCsrfMiddleware, StaticMiddleware, ValidatesCsrfToken, WaitsForConnection
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.config(&blk) ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/static-rails/configuration.rb', line 4
def self.config(&blk)
@configuration ||= Configuration.new
@configuration.tap do |config|
blk&.call(config)
end
end
|