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

fix

parent 19665ca6
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,10 @@ class Communication::Block::Component::File < Communication::Block::Component::B
def blob
return if data.nil? || data['id'].blank?
@blob ||= template.blob_with_id data['id']
@blob ||= template.block
.university
.active_storage_blobs
.find_by id: data['id']
end
def default_data
......@@ -14,5 +17,4 @@ class Communication::Block::Component::File < Communication::Block::Component::B
def git_dependencies
[blob]
end
end
......@@ -132,10 +132,6 @@ class Communication::Block::Template::Base
true
end
def blob_with_id(id)
university.active_storage_blobs.find_by id: id
end
def default_data
hash = {}
hash['elements'] = [] if has_element_class?
......
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