app/controllers/admin/common_controller.rb
Class CommonController
has 29 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Admin::CommonController < ApplicationController
include ::Auth
include ::Pundit::Authorization
before_action :authenticate_user!, except: %i(dashboard)
unexpected token error
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
record._names.find {|d| @locales.include?(d["language_code"].to_sym) }&.fetch("text", "")
- Exclude checks