mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 19:43:38 +00:00
cargar decorators
This commit is contained in:
parent
460635e940
commit
29950e4380
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,12 @@ module Sutty
|
||||||
|
|
||||||
config.active_storage.variant_processor = :vips
|
config.active_storage.variant_processor = :vips
|
||||||
|
|
||||||
|
config.to_prepare do
|
||||||
|
Dir.glob(File.join(File.dirname(__FILE__), '..', 'app', '**', '*_decorator.rb')) do |c|
|
||||||
|
Rails.configuration.cache_classes ? require(c) : load(c)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
ActiveStorage::DirectUploadsController.include ActiveStorage::AuthenticatedDirectUploadsController
|
ActiveStorage::DirectUploadsController.include ActiveStorage::AuthenticatedDirectUploadsController
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue