Class: ActiveModel::BetterErrors::MessageReporter

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

Overview

MessageReporter

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::BetterErrors::Reporter

Instance Method Details

#full_message(attribute, message) ⇒ Object



13
14
15
# File 'lib/active_model/better_errors/message_reporter.rb', line 13

def full_message(attribute, message)
  fail 'abstract method'
end

#full_messagesObject



9
10
11
# File 'lib/active_model/better_errors/message_reporter.rb', line 9

def full_messages
  fail 'abstract method'
end

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



17
18
19
# File 'lib/active_model/better_errors/message_reporter.rb', line 17

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