Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heredoc EOF Indented #110

Open
kyle-c9000 opened this issue Nov 15, 2016 · 1 comment
Open

Heredoc EOF Indented #110

kyle-c9000 opened this issue Nov 15, 2016 · 1 comment

Comments

@kyle-c9000
Copy link

kyle-c9000 commented Nov 15, 2016

The ending EOF in a heredoc is indented this is breaking the heredoc:

body =<<EOF
This is a test email to send an attachement.
  EOF
@madeindjs
Copy link

Same issue for me:

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')

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')

and this broke my code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants