Class FileBlock
In: app/models/file_block.rb
Parent: AbstractFileBlock

Methods

Public Class methods

[Source]

    # File app/models/file_block.rb, line 17
17:   def self.display_name
18:     "File"
19:   end

Public Instance methods

[Source]

   # File app/models/file_block.rb, line 5
5:   def set_attachment_file_path
6:     if @attachment_file_path && @attachment_file_path != attachment.file_path
7:       attachment.file_path = @attachment_file_path
8:     end
9:   end

[Source]

    # File app/models/file_block.rb, line 11
11:   def set_attachment_section
12:     if @attachment_section_id && @attachment_section_id != attachment.section_id
13:       attachment.section_id = @attachment_section_id 
14:     end
15:   end

[Validate]