compute timezone offset from difference between requested_at and server local time
This commit is contained in:
@@ -9,6 +9,7 @@ Rails.application.configure do
|
||||
# it changes. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the web server when you make code changes.
|
||||
config.cache_classes = false
|
||||
config.action_view.cache_template_loading = true
|
||||
|
||||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# typed: strict
|
||||
Rails.application.routes.draw do
|
||||
ID_CONSTRAINT = T.let(%r{([^/]+)}, Regexp)
|
||||
id_constraint = T.let(%r{([^/]+)}, Regexp)
|
||||
|
||||
mount ActionCable.server => "/cable"
|
||||
|
||||
@@ -26,7 +26,7 @@ Rails.application.routes.draw do
|
||||
as: :domain_users,
|
||||
only: %i[show],
|
||||
constraints: {
|
||||
id: ID_CONSTRAINT,
|
||||
id: id_constraint,
|
||||
},
|
||||
controller: "domain/users" do
|
||||
get :search_by_name, on: :collection
|
||||
@@ -79,7 +79,7 @@ Rails.application.routes.draw do
|
||||
controller: "domain/users",
|
||||
path: "",
|
||||
constraints: {
|
||||
id: ID_CONSTRAINT,
|
||||
id: id_constraint,
|
||||
} do
|
||||
get :faved_by, on: :collection, action: :users_faving_post
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user