Skip to content

Instantly share code, notes, and snippets.

@garethrees
Created September 7, 2017 09:05
Show Gist options
  • Select an option

  • Save garethrees/7d8de8716e8a0f8ad05278373bf2ef10 to your computer and use it in GitHub Desktop.

Select an option

Save garethrees/7d8de8716e8a0f8ad05278373bf2ef10 to your computer and use it in GitHub Desktop.
Rails to_sql displays $1 instead of real value
# https://github.com/rails/rails/issues/15331
Comment.connection.unprepared_statement do
puts Comment.where(attention_requested: true).not_embargoed.to_sql
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment