Module: Unidom::Common::Concerns::ArgumentValidation::ClassMethods
- Defined in:
- app/models/unidom/common/concerns/argument_validation.rb
Instance Method Summary collapse
Instance Method Details
#assert_present!(name, value) ⇒ Object
15 16 17 |
# File 'app/models/unidom/common/concerns/argument_validation.rb', line 15 def assert_present!(name, value) raise ArgumentError.new("The #{name} argument is required.") if value.blank? end |