ruby - Using array of symbols in model delegate declaration -


I am trying to pass some values ​​dynamically to delegate in my model I have parameters as an array of symbols:

  [: first_name, first_name =,: last_name,: last_name =,: email,: email =]  

How can I use it? array #include converts each of my elements into a string which is not good I need to include the above array in this way:

  rep & lt ; ARRAY-OF-SYMBOLS- here, :: my_other_class prefix :: my_prefix  

you directly Pass your code directly into the delegate method:

symbols_array, to: my_other_class, prefix :: my_prefix < / Div>

Comments