Skip to content
Snippets Groups Projects
Commit d90ad15b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'git' of github.com:noesya/osuny into git

parents e9703f74 50206445
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