You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.joins(<<sql LEFT JOIN allergens_recipes ON allergens_recipes.recipe_id = recipes.id LEFT JOIN allergens ON allergens_recipes.allergen_id = allergens.idsql).where(sql_query, *params_query).group(:id).paginate(:page=>params[:page]).order('id DESC')
becomes:
self.joins(<<sql LEFT JOIN allergens_recipes ON allergens_recipes.recipe_id = recipes.id LEFT JOIN allergens ON allergens_recipes.allergen_id = allergens.id sql ).where(sql_query , *params_query).group(:id).paginate( :page => params[:page] ).order('id DESC')
The ending EOF in a heredoc is indented this is breaking the heredoc:
The text was updated successfully, but these errors were encountered: