lib/hanami/configuration.rb in hanami-1.2.0.beta2 vs lib/hanami/configuration.rb in hanami-1.2.0.rc1
- old
+ new
@@ -95,17 +95,24 @@
# @api private
def mounted
settings.fetch_or_store(:mounted, {})
end
- # @since x.x.x
+ # @since 1.2.0
+ #
+ # @example
+ # # config/environment.rb
+ # # ...
+ # Hanami.configure do
+ # middleware.use MyRackMiddleware
+ # end
def middleware
settings.fetch_or_store(:middleware, Configuration::Middleware.new)
end
# Setup Early Hints feature
#
- # @since x.x.x
+ # @since 1.2.0
#
# @example Enable for all the environments
# # config/environment.rb
# Hanami.configure do
# early_hints true