abartov / bybeconv

Project Ben-Yehuda's content management system.
https://benyehuda.org/
Other
10 stars 5 forks source link

Implemented locks mechanics for ingestibles #386

Closed damisul closed 1 week ago

damisul commented 1 week ago

Added two new columns to Ingestibles table: locked_by_user_id and locked_at.

On every action which may changed ingestible, it now tries to lock ingestible. Record considered locked if locked_at is not more than 15 minutes ago.

Also fixed several i18n-related issues (wrong scope for i18n string ingestible -> ingestibles (controller name)).

Added specs for IngestiblesController.