rename qwaiter to mozo

This commit is contained in:
2025-09-20 17:35:58 -05:00
parent 7212d9041e
commit 0e051b1f93
99 changed files with 189 additions and 168 deletions
@@ -13,7 +13,7 @@ module ActiveModel::SerializerSupport
end
=begin
class Qwaiter::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
class Mozo::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
def add_resource_relationships_old1(attrs, serializer, options = {})
options[:add_included] = options.fetch(:add_included, true)
serializer.associations.each do |association| #do |name, association, opts|
@@ -85,5 +85,5 @@ class Qwaiter::JsonAdapter < ActiveModel::Serializer::Adapter::JsonApi
end
=end
#ActiveModel::Serializer.config.adapter = :json_api
#ActiveModel::Serializer.config.adapter = Qwaiter::JsonAdapter
#ActiveModel::Serializer.config.adapter = Mozo::JsonAdapter
#ActiveModel::Serializer.config.adapter = :flatten_json
+2 -2
View File
@@ -1,4 +1,4 @@
module Qwaiter
module Mozo
class FailureApp < Devise::FailureApp
def respond
if request.format.json?
@@ -267,7 +267,7 @@ Devise.setup do |config|
# change the failure app, you can configure them inside the config.warden block.
#
config.warden do |manager|
manager.failure_app = Qwaiter::FailureApp
manager.failure_app = Mozo::FailureApp
# manager.intercept_401 = false
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
end
+5 -5
View File
@@ -1,15 +1,15 @@
if Rails.env.development?
Qwaiter.event_host = "http://localhost:9296/faye"
Mozo.event_host = "http://localhost:9296/faye"
else
Qwaiter.event_host = "https://events.mozo.bar/faye"
Mozo.event_host = "https://events.mozo.bar/faye"
end
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
Mozo.broadcaster = Mozo::Broadcaster::Faye.new
# use the connection from couchbase-structures/documents
# will be overwritten in the specs since flushing the real
# thing is difficult
# Qwaiter::Counter.connection = $cb unless Rails.env.test?
# Mozo::Counter.connection = $cb unless Rails.env.test?
# Use the Drb counter
Qwaiter::Counter.connection = Qwaiter::DrbCounter.object unless Rails.env.test?
Mozo::Counter.connection = Mozo::DrbCounter.object unless Rails.env.test?
+2 -1
View File
@@ -4,4 +4,5 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Qwaiter::Application.config.secret_token = 'a2d0002614aa5e1a04dd5f57c3a239765ee47df0f5e3214adf41c4893b84a95cd805f650f5edb321f2474adf6bb01a625b911d34a3c879815281d7e1db4415c8'
#TODO: I think this one is no longer used and its just credentials now. Written when using rails 8.0.2
Mozo::Application.config.secret_token = 'a2d0002614aa5e1a04dd5f57c3a239765ee47df0f5e3214adf41c4893b84a95cd805f650f5edb321f2474adf6bb01a625b911d34a3c879815281d7e1db4415c8'
+2 -2
View File
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
Qwaiter::Application.config.session_store :cookie_store, key: '_qwaiter_session'
Mozo::Application.config.session_store :cookie_store, key: '_mozo_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
# Qwaiter::Application.config.session_store :active_record_store
# Mozo::Application.config.session_store :active_record_store