Raise an exception when an asset is not found
This is the default in Rails 5.1 applications. If we want to use an asset in the public folder, we need to add the `public_folder: true` option, making it clear that we don't expect the asset to be in the asset pipeline. Since we don't use `asset_path` to reference assets in the public folder, we can safely disable the `unknown_asset_fallback` option.
This commit is contained in:
@@ -16,7 +16,6 @@ module Consul
|
|||||||
|
|
||||||
# Overwrite Rails 5.1 defaults and use the options we used in Rails 5.0
|
# Overwrite Rails 5.1 defaults and use the options we used in Rails 5.0
|
||||||
config.action_view.form_with_generates_remote_forms = false
|
config.action_view.form_with_generates_remote_forms = false
|
||||||
config.assets.unknown_asset_fallback = true
|
|
||||||
|
|
||||||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
||||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||||
|
|||||||
Reference in New Issue
Block a user