Module: Compass::Configuration
- Extended by:
- ActiveSupport::Concern
- Included in:
- Compass
- Defined in:
- lib/compass/configuration.rb,
lib/compass/configuration/layout.rb,
lib/compass/configuration/notification.rb
Overview
Configuration options for Compass.
To configure, use the ‘configure` method. For example:
Compass.configure do |config|
config.authenticate = -> do
authenticate_or_request_with_http_token do |token, |
@current_user = User.find_by(token: token)
end
end
config.context = -> { { current_user: } }
config.etag = -> { current_user.id }
# Configure menu
config..items = %w[ TestMenu ]
config..cache = 3600
end
Defined Under Namespace
Modules: Breadcrumb, Menu, Search Classes: Layout, Notification