Class: Mv::Core::Validation::Presence

Inherits:
Base
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/mv/core/validation/presence.rb

Instance Attribute Summary

Attributes inherited from Base

#allow_blank, #allow_nil, #as, #column_name, #create_trigger_name, #message, #on, #options, #table_name, #update_trigger_name

Instance Method Summary collapse

Methods inherited from Base

#<=>, #create?, #full_message, #to_a, #update?

Constructor Details

#initialize(table_name, column_name, opts) ⇒ Presence

Returns a new instance of Presence.



11
12
13
# File 'lib/mv/core/validation/presence.rb', line 11

def initialize(table_name, column_name, opts)
  super(table_name, column_name, opts == true ? {} : opts)
end