Class: Hyrax::Forms::FileManagerForm
- Inherits:
-
Object
- Object
- Hyrax::Forms::FileManagerForm
- Includes:
- HydraEditor::Form
- Defined in:
- app/forms/hyrax/forms/file_manager_form.rb
Instance Attribute Summary collapse
-
#current_ability ⇒ Object
readonly
Returns the value of attribute current_ability.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(work, ability) ⇒ FileManagerForm
constructor
A new instance of FileManagerForm.
- #version ⇒ Object
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_ability ⇒ Object (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 |
#request ⇒ Object (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
#version ⇒ Object
14 15 16 |
# File 'app/forms/hyrax/forms/file_manager_form.rb', line 14 def version model.etag end |