small things
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
module Admin
|
module Admin
|
||||||
class UserFeedbacksController < Admin::ApplicationController
|
class UserFeedbacksController < Admin::ApplicationController
|
||||||
def index
|
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
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
|||||||
@@ -70,8 +70,9 @@ class InMemoryQCounter
|
|||||||
puts "Couch settings path: #{couch_settings_path}"
|
puts "Couch settings path: #{couch_settings_path}"
|
||||||
puts "Environment: #{environment.inspect}"
|
puts "Environment: #{environment.inspect}"
|
||||||
#couch_settings = YAML.load_file(couch_settings_path)[environment]
|
#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]
|
couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, permitted_classes: [Symbol])[environment]
|
||||||
database = couch_settings['database'].sub 'localhost', 'host.docker.internal'
|
database = couch_settings['database']
|
||||||
|
database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development'
|
||||||
#database = couch_settings['database']
|
#database = couch_settings['database']
|
||||||
#database = couch_settings['database'].sub 'localhost', '172.17.0.1'
|
#database = couch_settings['database'].sub 'localhost', '172.17.0.1'
|
||||||
db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database
|
db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database
|
||||||
|
|||||||
Reference in New Issue
Block a user