Module: HydraEditor

Extended by:
ActiveSupport::Autoload
Defined in:
lib/hydra-editor.rb,
lib/hydra_editor/engine.rb,
lib/hydra_editor/version.rb,
app/forms/hydra_editor/form.rb,
app/forms/hydra_editor/form/permissions.rb,
app/services/hydra_editor/field_metadata_service.rb

Defined Under Namespace

Modules: Form Classes: ControllerResource, Engine, FieldMetadataService, InvalidType

Constant Summary collapse

VERSION =
'6.1.0'.freeze

Class Method Summary collapse

Class Method Details

.modelsObject


14
15
16
# File 'lib/hydra-editor.rb', line 14

def self.models
  @models ||= []
end

.models=(val) ⇒ Object


10
11
12
# File 'lib/hydra-editor.rb', line 10

def self.models=(val)
  @models = val
end

.valid_model?(type) ⇒ Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/hydra-editor.rb', line 18

def self.valid_model?(type)
  models.include? type
end