Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
module ApplicationHelper
def adjust_aws_settings(settings)
settings[:aws_settings][:aws_file_upload_settings] =
lambda { |file_settings| file_settings.merge({acl: 'bucket-owner-full-control'}) }
end
end
7 changes: 6 additions & 1 deletion config/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"db_prefix": "cama_", // prefix name for database tables
"relative_url_root": "", // URL prefix, for example to get http://localhost:3000/blog/, this should be "blog"
"auto_include_migrations": false, // permit to avoid auto include of all migrations of camaleon cms and its related plugins
"hooks": {}
"helpers": ["ApplicationHelper"],
"hooks": {
"on_uploader": [
"adjust_aws_settings"
]
}
}

// Note: after any change in this file, you need to restart your server to apply changes.