Class: Mv::Core::Validation::Presence
- 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
-
#initialize(table_name, column_name, opts) ⇒ Presence
constructor
A new instance of Presence.
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 |