Skip to content
Snippets Groups Projects
Unverified Commit 50206445 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

blob has many git files

parent 041e09eb
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,12 @@ ActiveStorage::Filename.class_eval do
end
module ActiveStorageGitPathStatic
extend ActiveSupport::Concern
included do
has_many :git_files, class_name: "Communication::Website::GitFile", as: :about, dependent: :destroy
end
def git_path_static
"data/media/#{id[0..1]}/#{id}.yml"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment