Browse Source

Rubocop

pull/81/head
baarkerlounger 3 years ago
parent
commit
c607458783
  1. 1
      app/controllers/case_logs_controller.rb
  2. 1
      lib/tasks/form_definition.rake

1
app/controllers/case_logs_controller.rb

@ -1,7 +1,6 @@
class CaseLogsController < ApplicationController class CaseLogsController < ApplicationController
skip_before_action :verify_authenticity_token, if: :json_api_request? skip_before_action :verify_authenticity_token, if: :json_api_request?
before_action :authenticate, if: :json_api_request? before_action :authenticate, if: :json_api_request?
# TODO: determine if it's worth splitting out an API controller
before_action :authenticate_user!, unless: :json_api_request? before_action :authenticate_user!, unless: :json_api_request?
def index def index

1
lib/tasks/form_definition.rake

@ -1,6 +1,5 @@
require "json" require "json"
require "json-schema" require "json-schema"
# rubocop:disable Lint/ShadowingOuterLocalVariable
def get_all_form_paths(directories) def get_all_form_paths(directories)
form_paths = [] form_paths = []
directories.each do |directory| directories.each do |directory|

Loading…
Cancel
Save