Merge branch 'master' into front-end

This commit is contained in:
Beatrice Olivera
2018-08-28 17:21:12 +01:00
committed by GitHub
14 changed files with 146 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
# before_action :authenticate_user!
protect_from_forgery unless: -> { request.format.json? } # Only accept json
end

View File

@@ -1,9 +1,12 @@
class PagesController < ApplicationController
skip_before_action :authenticate_user!, only: [:call]
# skip_before_action :authenticate_user!, only: [:call]
def call
end
def index
end
def home
end
end