Class: Hyrax::Forms::Admin::CollectionTypeForm

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/forms/hyrax/forms/admin/collection_type_form.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collection_typeObject

Returns the value of attribute collection_type


6
7
8
# File 'app/forms/hyrax/forms/admin/collection_type_form.rb', line 6

def collection_type
  @collection_type
end

Instance Method Details

#all_settings_disabled?Boolean

Returns:

  • (Boolean)

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

def all_settings_disabled?
  collections? || admin_set? || user_collection?
end

#share_options_disabled?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'app/forms/hyrax/forms/admin/collection_type_form.rb', line 18

def share_options_disabled?
  all_settings_disabled? || !sharable
end