Module: TableSync::Utils::RequiredValidator::PrependedInitialization
- Defined in:
- lib/table_sync/utils/required_validator.rb
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/table_sync/utils/required_validator.rb', line 5 def initialize(*) super not_filled_attrs = calculate_not_filled_attributes if not_filled_attrs.present? raise( ArgumentError, "Some of required attributes is not provided: #{not_filled_attrs.inspect}", ) end end |