From d9758157b9bb8e00b77f20ad87b07e85d80797d5 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 30 Jul 2019 13:10:35 -0500 Subject: add an optional blinking cursor to console formatting --- app/models/account.rb | 1 + app/models/user.rb | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'app/models') diff --git a/app/models/account.rb b/app/models/account.rb index 05fb387aa..6528a7ae9 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -154,6 +154,7 @@ class Account < ApplicationRecord :hides_filtered_gap?, :hides_mascot?, :hides_captions?, + :shows_cursor?, to: :user, prefix: true, diff --git a/app/models/user.rb b/app/models/user.rb index c14c33567..cbe62d189 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -128,6 +128,7 @@ class User < ApplicationRecord :roar_lifespan, :delayed_roars, :delayed_for, + :show_cursor, :auto_play_gif, :default_sensitive, @@ -314,6 +315,10 @@ class User < ApplicationRecord @_delayed_for ||= (settings.delayed_for || 60) end + def shows_cursor? + @show_cursor ||= (settings.show_cursor || false) + end + def defaults_to_local_only? @defaults_to_local_only ||= (settings.default_local || false) end -- cgit