Skip to content

Commit

Permalink
v0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfb committed Dec 14, 2024
1 parent c88a25b commit 0964c16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
```
Expand Down Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion lib/hotglue/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module HotGlue
class Version
CURRENT = '0.6.8'
CURRENT = '0.6.9'
end
end

0 comments on commit 0964c16

Please sign in to comment.