module AASM::Persistence

Public Class Methods

load_persistence_with_active_fedora(base) click to toggle source
# File lib/aasm-active_fedora/persistence.rb, line 4
def load_persistence_with_active_fedora(base)
  hierarchy = base.ancestors.map {|klass| klass.to_s}
  if hierarchy.include?('ActiveFedora::Base')
    include_persistence base, :active_fedora
  else
    load_persistence_without_active_fedora(base)
  end
end