We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Original code
class Foo scope :by_bar, -> { order(Arel.sql( <<-SQL (CASE WHEN foo LIKE 'bar%' THEN 1 ELSE 2 END) asc, classification asc SQL )) } scope :by_foo_and_bar, -> { by_classification.order(:foo) } end
Format 1:
class Foo scope :by_bar, -> { order(Arel.sql(<<-SQL)) } (CASE WHEN foo LIKE 'bar%' THEN 1 ELSE 2 END) asc, classification asc SQL scope :by_foo_and_bar, -> { by_classification.order(:foo) } end
Format 2:
The text was updated successfully, but these errors were encountered:
Here's a minimal reproduction of this issue:
Original:
string = ( <<~RAW This is a heredoc RAW ).chomp a = b
Format 1: (moves method call up)
string = (<<~RAW).chomp This is a heredoc RAW a = b
Format 2: (adds a newline after the heredoc)
Sorry, something went wrong.
No branches or pull requests
Original code
Format 1:
Format 2:
The text was updated successfully, but these errors were encountered: