This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DevvController < ApplicationController | |
def options | |
options = {} | |
available_option_keys = [:awesome, :ruby, :developer] | |
all_keys = params.keys.map(&:to_sym) | |
#this is wrong, we can not concatenate arrays with '&' operator, we should use '&&' or '+' operator |