Class: ActiveValidation::Manifest

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Concerns::ProtectFromMutableInstanceMethods
Defined in:
lib/active_validation/orm_plugins/active_record_plugin/models/active_validation/manifest.rb

Constant Summary

Constants included from Concerns::ProtectFromMutableInstanceMethods

Concerns::ProtectFromMutableInstanceMethods::MUTABLE_INSTANCE_METHODS, Concerns::ProtectFromMutableInstanceMethods::RESTRICTED_INSTANCE_METHODS

Instance Method Summary collapse

Methods included from Concerns::ProtectFromMutableInstanceMethods

#restricted_instance_methods

Instance Method Details

#to_internal_manifestObject



14
15
16
17
# File 'lib/active_validation/orm_plugins/active_record_plugin/models/active_validation/manifest.rb', line 14

def to_internal_manifest
  json_options = { include: { checks: { methods: i[method_name] } }, root: false }
  ActiveValidation::Internal::Models::Manifest.new as_json(json_options).to_options!
end