class StrongerParameters::RequiredConstraint

Public Class Methods

new(other) click to toggle source
# File lib/stronger_parameters/constraint.rb, line 97
def initialize(other)
  @other = other
end

Public Instance Methods

required?() click to toggle source
# File lib/stronger_parameters/constraint.rb, line 105
def required?
  true
end
value(v) click to toggle source
# File lib/stronger_parameters/constraint.rb, line 101
def value(v)
  @other.value(v)
end