Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created December 5, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcoyne/1d0fff6b8e3d90b6800f0f918867e36f to your computer and use it in GitHub Desktop.
Save jcoyne/1d0fff6b8e3d90b6800f0f918867e36f to your computer and use it in GitHub Desktop.
collection problem
col.class.ancestors
=> [Dor::Collection,
Dor::Releaseable,
Dor::Set,
#<Module:0x0000000006517678>,
#<Module:0x000000000661dea0>,
#<Module:0x000000000661eb48>,
#<Module:0x000000000661f430>,
Dor::Publishable,
Dor::Abstract,
Dor::Processable,
Dor::Versionable,
Dor::Describable,
Dor::Rightsable,
#<Module:0x0000000006a76038>,
#<Module:0x0000000006a716a0>,
#<Module:0x0000000006a71b00>,
#<Module:0x0000000006a651e8>,
#<Module:0x0000000006a546e0>,
Dor::Governable,
Dor::Eventable,
#<Module:0x00000000068e9d78>,
Dor::Identifiable,
ActiveFedora::Base,
ActiveFedora::RDF::Identifiable,
ActiveFedora::ReloadOnSave,
ActiveFedora::FedoraAttributes,
ActiveFedora::Core,
ActiveFedora::Serialization,
ActiveModel::Serializers::JSON,
ActiveModel::Serialization,
ActiveFedora::Attributes::Serializers,
ActiveFedora::Attributes,
#<Module:0x0000000006891df8>,
ActiveModel::Dirty,
ActiveModel::AttributeMethods,
ActiveFedora::Reflection,
ActiveFedora::NestedAttributes,
ActiveFedora::AutosaveAssociation,
ActiveFedora::Associations,
ActiveFedora::Datastreams,
ActiveModel::Validations::Callbacks,
ActiveFedora::Callbacks,
ActiveFedora::Validations,
ActiveModel::Validations::HelperMethods,
ActiveSupport::Callbacks,
ActiveModel::Validations,
ActiveModel::Conversion,
ActiveFedora::Indexing,
ActiveFedora::Scoping::Named,
ActiveFedora::Scoping::Default,
ActiveFedora::Scoping,
ActiveFedora::Persistence,
ActiveFedora::Sharding,
ActiveFedora::SemanticNode,
ActiveSupport::ToJsonWithActiveSupportEncoder,
Object,
PP::ObjectMixin,
Delayed::MessageSending,
JSON::Ext::Generator::GeneratorMethods::Object,
ActiveSupport::Tryable,
ActiveSupport::Dependencies::Loadable,
Kernel,
BasicObject]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment