module ActiveRecord
  class Errors
    def my_method
      # Display all the errors in the console
      puts @errors.to_yaml

      # How to get the object name from where come this errors ?
    end
  end
end