Class: ActiveModel::ErrorCollecting::MessageReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/active_model/error_collecting/message_reporter.rb

Direct Known Subclasses

HumanMessageReporter

Instance Attribute Summary

Attributes inherited from Reporter

#collection

Instance Method Summary collapse

Methods inherited from Reporter

#base, #initialize

Constructor Details

This class inherits a constructor from ActiveModel::ErrorCollecting::Reporter

Instance Method Details

#full_message(attribute, message) ⇒ Object



8
9
10
# File 'lib/active_model/error_collecting/message_reporter.rb', line 8

def full_message(attribute, message)
  raise "abstract method"
end

#full_messagesObject



4
5
6
# File 'lib/active_model/error_collecting/message_reporter.rb', line 4

def full_messages
  raise "abstract method"
end

#generate_message(attribute, type = :invalid, options = {}) ⇒ Object



12
13
14
# File 'lib/active_model/error_collecting/message_reporter.rb', line 12

def generate_message(attribute, type = :invalid, options = {})
  raise "abstract method"
end