small things

This commit is contained in:
2025-08-30 10:12:27 -05:00
parent 6b02c05a99
commit 4a50b54ca5
2 changed files with 4 additions and 3 deletions
@@ -2,7 +2,7 @@
module Admin
class UserFeedbacksController < Admin::ApplicationController
def index
@user_feedbacks = UserFeedback.all(page: params[:page], per_page: params[:per_page].presence || 40 )
@user_feedbacks = UserFeedback.all(page: params[:page], per_page: params[:per_page].presence || 40, descending: true)
end
def show
+3 -2
View File
@@ -70,8 +70,9 @@ class InMemoryQCounter
puts "Couch settings path: #{couch_settings_path}"
puts "Environment: #{environment.inspect}"
#couch_settings = YAML.load_file(couch_settings_path)[environment]
couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, [Symbol], [], ['default'])[environment]
database = couch_settings['database'].sub 'localhost', 'host.docker.internal'
couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, permitted_classes: [Symbol])[environment]
database = couch_settings['database']
database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development'
#database = couch_settings['database']
#database = couch_settings['database'].sub 'localhost', '172.17.0.1'
db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database