src/Rails/ActionController/Rendering.php
protected function setAssigns(array &$options)
    {
        $assigns = $this->controller->assigns();
        if (isset($options['assigns']) && is_array($options['assigns'])) {
            foreach ($options['assigns'] as $name => $value) {
                $assigns->set($name, $value);
            }
        }
        $options['assigns'] = $assigns;
    }
protected function setAssigns(array &$options)
    {
        $assigns = $this->controller->assigns();
        if (isset($options['assigns']) && is_array($options['assigns'])) {
            foreach ($options['assigns'] as $name => $value) {
                $assigns->set($name, $value);
            }
        }
        $options['assigns'] = $assigns;
    }
protected function setAssigns ( array & $ options ) { $ assigns = $ this -> controller -> assigns ( ) ; if ( isset ( $ options [ 'assigns' ] ) && is_array ( $ options [ 'assigns' ] ) ) { foreach ( $ options [ 'assigns' ] as $ name => $ value ) { $ assigns -> set ( $ name , $ value ) ; } } $ options [ 'assigns' ] = $ assigns ; }
Set assigns for template
Checks if the 'assigns' value was passed as option, and
sets all the assigns set there to the Assigns object.
If the value for 'assigns' isn't an array, it is ignored.
Then the 'assigns' value is set to the Assigns object, which
will be used when rendering the template.

@return void
Set assigns for template Checks if the assigns value was passed as option and sets all the assigns set there to the Assigns object . If the value for assigns isn t an array it is ignored . Then the assigns value is set to the Assigns object which will be used when rendering the template .