# File lib/transitions.rb, line 85 def self.active_model_descendant?(klazz) # Checking directly for "ActiveModel" wouldn't work so we use some arbitrary module close to it. defined?(ActiveModel) && klazz.included_modules.include?(ActiveModel::Validations) end