Module: Sequencescape::Api::Resource::ErrorHandling

Included in:
Sequencescape::Api::Resource
Defined in:
lib/sequencescape-api/resource/error_handling.rb

Defined Under Namespace

Modules: TurnOffValidationOfUuidOnlyRecords

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/sequencescape-api/resource/error_handling.rb', line 13

def self.included(base)
  base.class_eval do
    extend ActiveModel::Translation
    include ActiveModel::Validations
    include ActiveModel::Validations::Callbacks
    include TurnOffValidationOfUuidOnlyRecords
  end
end