This commit is contained in:
2025-11-07 13:34:32 -08:00
commit 1e8c5a972b
436 changed files with 11000 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
module Books::EditingHelper
def editing_mode_toggle_switch(leaf, checked:)
target_url = checked ? leafable_slug_path(leaf) : edit_leafable_path(leaf)
render "books/edit_mode", target_url: target_url, checked: checked
end
end