Module: HydraEditor
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/hydra-editor.rb,
lib/hydra_editor/engine.rb,
lib/hydra_editor/version.rb
Defined Under Namespace
Classes: ControllerResource, Engine, InvalidType
Constant Summary
collapse
- VERSION =
"0.2.1"
Class Method Summary
collapse
Class Method Details
.models ⇒ Object
17
18
19
|
# File 'lib/hydra-editor.rb', line 17
def self.models
@models ||= []
end
|
.models=(val) ⇒ Object
13
14
15
|
# File 'lib/hydra-editor.rb', line 13
def self.models= val
@models = val
end
|
.valid_model?(type) ⇒ Boolean
21
22
23
|
# File 'lib/hydra-editor.rb', line 21
def self.valid_model?(type)
models.include? type
end
|