We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4214dd commit 43a9832Copy full SHA for 43a9832
README.adoc
@@ -870,14 +870,14 @@ Consider using named placeholders instead of positional placeholders when you ha
870
----
871
# okish
872
Client.where(
873
- 'created_at >= ? AND created_at <= ?',
874
- params[:start_date], params[:end_date]
+ 'orders_count >= ? AND country_code = ?',
+ params[:min_orders_count], params[:country_code]
875
)
876
877
# good
878
879
- 'created_at >= :start_date AND created_at <= :end_date',
880
- start_date: params[:start_date], end_date: params[:end_date]
+ 'orders_count >= :min_orders_count AND country_code = :country_code',
+ min_orders_count: params[:min_orders_count], country_code: params[:country_code]
881
882
883
0 commit comments