Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/application_controller.rb

Overview

typed: false

Direct Known Subclasses

AddressSearchesController, ApisController, AppDetectionAnalysesController, AppDetectionStrategiesController, AppDetectionsController, Banal::BrainstormsController, Banal::DocumentsController, Banal::EmployeesController, Banal::LinksController, Banal::MetadataController, Banal::ProjectsController, Banal::RelatedObjectsController, BanalBusinessTestcasesController, BanalComplexesController, BasecampIntegrationsController, BigDiscreteModulesController, CodeChangeRequestsController, CodeLinkBatchesController, CodeLinkTypesController, CodeLinksController, CodesController, CommentsController, CookieChangesController, CopiesController, DirectoriesController, EmployeesController, EziiAdultVerifyAndSigninsController, EziiCitiesController, EziiDeltaDirectionsController, EziiDeltaGitsController, EziiGeminatorsController, EziiIntegrationsController, EziiOsFilesController, EziiRefactoringCombiesController, EziiRobotExperimentsController, EziiSeedsController, EziiTeamworksController, EziiZappingsController, FileSystemsController, GltfModelsController, HartScienceExperimentsController, ImportedDataController, KmzModelsController, LocalLawPipelinesController, MakesController, MercurialsController, Partners::GetPaidsController, SearchesController, StickRecordsController, TasksController, TypesController, UnzipsController, UserTextCopiesController, VisualizationsController, WaymoSlomosController, WhitelabelSystemExtensionsController, WidgetsController, WitAiParseModelExamplesController, WitAiParseModelsController

Instance Method Summary collapse

Instance Method Details

#gdpr_complianceObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'app/controllers/application_controller.rb', line 11

def gdpr_compliance
  §(EZII_OS_GDPR_COMPLIANCE_PROBLEM, BYPASS_GDPR_PROBLEM) do
    return if params['bypass_gdpr'] == '1'
  end
  
  §(GDPR_COMPLIANCE_IMPLEMENTATION) do
    §(ORDER_OF_LOC_IS_IMPORTANT) do
      §(EXECUTE_IN_SUCCESSION) do
        firstly do
          if params[:user_accepted_all_gdpr_disclaimers]
            §(HACK_MUST_BE_CHANGED, GDPR_COMPLIANCE_PROBLEM) do
              cookies[:user_accepted_gdpr] = '1'
            end
          end
        end
        

        secondly do
          §(GDPR_COMPLIANCE_PROBLEM, HACK_MUST_BE_CHANGED) do
            if cookies[:user_accepted_gdpr] != "1" && HACK(request.path !~ /local_law_pipelines/)
              redirect_to('/local_law_pipelines/1')
            end
          end
        end
      end
    end
  end
end