znamenica/dneslov

View on GitHub
app/controllers/admin/common_controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage
F
0%

Class CommonController has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

class Admin::CommonController < ApplicationController
   include ::Auth
   include ::Pundit::Authorization

   before_action :authenticate_user!, except: %i(dashboard)
Severity: Minor
Found in app/controllers/admin/common_controller.rb - About 3 hrs to fix

    unexpected token error (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
    Open

          record._names.find {|d| @locales.include?(d["language_code"].to_sym) }&.fetch("text", "")

    There are no issues that match your filters.

    Category
    Status