Class: FileBlock
- Inherits:
-
AbstractFileBlock
- Object
- ActiveRecord::Base
- AbstractFileBlock
- FileBlock
- Defined in:
- app/models/file_block.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AbstractFileBlock
Class Method Details
.display_name ⇒ Object
17 18 19 |
# File 'app/models/file_block.rb', line 17 def self.display_name I18n.t "models.file_block.display_name" end |
Instance Method Details
#set_attachment_file_path ⇒ Object
5 6 7 8 9 |
# File 'app/models/file_block.rb', line 5 def if && != .file_path .file_path = end end |
#set_attachment_section ⇒ Object
11 12 13 14 15 |
# File 'app/models/file_block.rb', line 11 def if && != .section_id .section_id = end end |