• G
    [Feature] params.require requires array of params · 877e42e2
    Gaurish Sharma 提交于
    This PR adds ability to accept arrays which allows you to require multiple values in one method. so instead of this:
    
    ```ruby
    params.require(:person).require(:first_name)
    params.require(:person).require(:last_name)
    ```
    
    Here it will be one line for each params, so say if I require 10params, it will be 10lines of repeated code which is not dry. So I have added new method which does this in one line:
    
    ```ruby
    params.require(:person).require([:first_name, :last_name])
    ```
    
    Comments welcome
    877e42e2
strong_parameters.rb 26.8 KB