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,14 @@
class Books::BookmarksController < ApplicationController
allow_unauthenticated_access
include BookScoped
def show
@leaf = @book.leaves.active.find_by(id: last_read_leaf_id) if last_read_leaf_id.present?
end
private
def last_read_leaf_id
cookies["reading_progress_#{@book.id}"]
end
end