mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-04-13 08:49:13 +00:00
added chat room controllers
This commit is contained in:
parent
085e402c4d
commit
68d55cbcd8
6
app/controllers/chat_rooms_controller.rb
Normal file
6
app/controllers/chat_rooms_controller.rb
Normal file
@ -0,0 +1,6 @@
|
||||
class ChatRoomsController < ApplicationController
|
||||
|
||||
def create
|
||||
|
||||
end
|
||||
end
|
8
app/controllers/requests_controller.rb
Normal file
8
app/controllers/requests_controller.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class RequestsController < ApplicationController
|
||||
|
||||
def update
|
||||
request.accepted = true
|
||||
|
||||
# Create new Chat Room
|
||||
end
|
||||
end
|
@ -50,7 +50,7 @@ Rails.application.configure do
|
||||
config.action_cable.allowed_request_origins = [ '*' ]
|
||||
|
||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
||||
# config.force_ssl = true
|
||||
config.force_ssl = true
|
||||
|
||||
# Use the lowest log level to ensure availability of diagnostic information
|
||||
# when problems arise.
|
||||
|
7
test/controllers/chat_rooms_controller_test.rb
Normal file
7
test/controllers/chat_rooms_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ChatRoomsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/controllers/requests_controller_test.rb
Normal file
7
test/controllers/requests_controller_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class RequestsControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user