Module: ObscurifyAttribute::Validations

Defined in:
lib/obscurify_attribute/validations.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
# File 'lib/obscurify_attribute/validations.rb', line 3

def self.included(base)
  base.__send__(:extend, ::ObscurifyAttribute::Validations::ClassMethods)
  base.__send__(:include, ::ObscurifyAttribute::Validations::InstanceMethods)
  base.alias_method_chain(:errors, :obscured)
end