Class: Hyrax::Forms::FileManagerForm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work, ability) ⇒ FileManagerForm

Returns a new instance of FileManagerForm.


8
9
10
11
12
# File 'app/forms/hyrax/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)

Returns the value of attribute current_ability


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

def current_ability
  @current_ability
end

#requestObject (readonly)

Returns the value of attribute request


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

def request
  @request
end

Instance Method Details

#versionObject


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

def version
  model.etag
end