Module: CustomErrorMessage

Defined in:
lib/custom_error_message.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/custom_error_message.rb', line 2

def self.included(receiver)
  receiver.send :include, InstanceMethods
  receiver.class_eval do
    alias_method_chain :full_messages, :tilde
    alias_method_chain :add, :procs
  end
end