From 0964c16a4fd185b90f06a87fcdbcd91c5b09bcc3 Mon Sep 17 00:00:00 2001 From: Jason Fleetwood-Boldt Date: Sat, 14 Dec 2024 09:17:33 -0600 Subject: [PATCH] v0.6.9 --- README.md | 15 +++++++++------ lib/hotglue/version.rb | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dc648576..10ee3ae6 100644 --- a/README.md +++ b/README.md @@ -938,13 +938,14 @@ This puts the downnested portals on top of one another (stacked top to bottom) i ### `--record-scope=` Record scope allows you to apply a model based scope for the controller being generated. -This is applied on top of all other scopes, searches, and modifiers applied to the +This is applied on top of all other scopes, searches, and modifiers applied to the built controller. `bin/rails :generate hot_glue:scaffold Order --record-scope='.is_open'` -Be sure to use single quotes (') and don't forget the dot (`.`) before your scope(s). +Be sure to use single quotes (`'`) and don't forget the dot (`.`) before your scope(s). + +Make sure your Order model has a scope `is_open`, like so: -Make sure your Order model has a scope `is_open` ``` scope :is_open, -> {where(state == 'open')} ``` @@ -1686,15 +1687,17 @@ These automatic pickups for partials are detected at buildtime. This means that # VERSION HISTORY -#### 2024-12-12 v0.6.9 +#### 2024-12-14 v0.6.9 • `--record-scope` Record scope allows you to apply a model based scope for the controller being generated. -This is applied on top of all other scopes, searches, and modifiers applied to the +This is applied on top of all other scopes, searches, and modifiers applied to the built controller. `bin/rails :generate hot_glue:scaffold Order --record-scope='.is_open'` -Be sure to use single quotes (') and don't forget the dot (`.`) before your scope(s). +(You can chain multiple scopes.) + +Be sure to use single quote marks (`'`) and don't forget the dot (`.`) before your scope(s). Make sure your Order model has a scope `is_open` diff --git a/lib/hotglue/version.rb b/lib/hotglue/version.rb index c015a12e..89063041 100644 --- a/lib/hotglue/version.rb +++ b/lib/hotglue/version.rb @@ -1,5 +1,5 @@ module HotGlue class Version - CURRENT = '0.6.8' + CURRENT = '0.6.9' end end