Class: CurationConcerns::Forms::FileManagerForm

Inherits:
Object
  • Object
show all
Includes:
HydraEditor::Form
Defined in:
app/forms/curation_concerns/forms/file_manager_form.rb

Overview

Since:

  • 0.14.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work, ability) ⇒ FileManagerForm

Returns a new instance of FileManagerForm.

Since:

  • 0.14.0



8
9
10
11
12
# File 'app/forms/curation_concerns/forms/file_manager_form.rb', line 8

def initialize(work, ability)
  super(work)
  @current_ability = ability
  @request = nil
end

Instance Attribute Details

#current_abilityObject (readonly)

Since:

  • 0.14.0



7
8
9
# File 'app/forms/curation_concerns/forms/file_manager_form.rb', line 7

def current_ability
  @current_ability
end

#requestObject (readonly)

Since:

  • 0.14.0



7
8
9
# File 'app/forms/curation_concerns/forms/file_manager_form.rb', line 7

def request
  @request
end

Instance Method Details

#versionObject

Since:

  • 0.14.0



14
15
16
# File 'app/forms/curation_concerns/forms/file_manager_form.rb', line 14

def version
  model.etag
end