lib/maglev/facets/parameters.rb
# called after a permit!, which then checks to ensure that certain keys
# are included. If any are missing, an ActionController::ParameterMissing error
# will be thrown.
called after a permit!, which then checks to ensure that certain keys
are included. If any are missing, an ActionController::ParameterMissing error
will be thrown.
called after a permit! which then checks to ensure that certain keys are included . If any are missing an ActionController :: ParameterMissing error will be thrown .
def enforce!(*keys)
      keys.each do |key|
        raise ActionController::ParameterMissing.new(key) if self[key].blank?
      end
      self
    end
def enforce! ( * keys ) keys . each do | key | raise ActionController :: ParameterMissing . new ( key ) if self [ key ] . blank? end self end
called after a permit!, which then checks to ensure that certain keys
are included.
called after a permit! which then checks to ensure that certain keys are included .
keys
<not_specific>