Module: Eco::API::UseCases::OozeSamples::Helpers::Creatable
- Included in:
- RegisterUpdateCase
- Defined in:
- lib/eco/api/usecases/ooze_samples/helpers/creatable.rb
Overview
set of helpers to create entries from a template
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.validate_base_type!(base) ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/eco/api/usecases/ooze_samples/helpers/creatable.rb', line 49 def validate_base_type!(base) return super if defined?(super) msg = "#{self} can only be included in Eco::API::UseCases::OozeSamples::RegisterUpdateCase" msg << "\nCan't be included in #{base}" raise LoadError, msg unless base <= Eco::API::UseCases::OozeSamples::RegisterUpdateCase true end |