Created
September 7, 2017 09:05
-
-
Save garethrees/7d8de8716e8a0f8ad05278373bf2ef10 to your computer and use it in GitHub Desktop.
Rails to_sql displays $1 instead of real value
This file contains hidden or 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
| # 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