This file contains 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
def create | |
offer = Offer.find(params[:offer_id]) | |
if params[:offer_id] | |
task = JSON.parse(params[:tasks]) | |
unless task.nil? | |
# seleziona i parametri rispondenti alla RE active_(.*) | |
# in questo modo otterrai una lista "elems" di al max 3 elementi del tipo | |
# elems == ['active_gift', 'active_encoding', ...] | |
elems.each do |elem| | |
klass_name = elem.split('_')[1].capitalize |
This file contains 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
_obj | |
*~ | |
bin |