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
|
Pastie
Support Pastie
or read my
Pastie << self
blog
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
|