mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
rubocop updates
This commit is contained in:
parent
f89992d120
commit
736848d70c
3 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
# Log all active model user errors
|
# Log all active model user errors
|
||||||
|
# rubocop: disable Lint/AssignmentInCondition
|
||||||
|
# rubocop: disable Style/SignalException
|
||||||
module ActiveModel
|
module ActiveModel
|
||||||
class Errors
|
class Errors
|
||||||
def add(attribute, message = :invalid, options = {})
|
def add(attribute, message = :invalid, options = {})
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Log all user issues raised by active record
|
# Log all user issues raised by active record
|
||||||
|
# rubocop: disable Metrics/LineLength
|
||||||
class ActiveRecord::Base
|
class ActiveRecord::Base
|
||||||
after_validation do |m|
|
after_validation do |m|
|
||||||
Rails.logger.info "USER MSG: ACTIVERECORD: #{m.class} ##{m.id} #{m.errors.full_messages} #{m.errors['epp_errors']}" if m.errors.present?
|
Rails.logger.info "USER MSG: ACTIVERECORD: #{m.class} ##{m.id} #{m.errors.full_messages} #{m.errors['epp_errors']}" if m.errors.present?
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
# Log all flash messages
|
# Log all flash messages
|
||||||
|
# rubocop: disable Metrics/CyclomaticComplexity
|
||||||
|
# rubocop: disable Metrics/LineLength
|
||||||
module ActionDispatch
|
module ActionDispatch
|
||||||
class Flash
|
class Flash
|
||||||
|
# rubocop: disable Metrics/PerceivedComplexity
|
||||||
|
# rubocop: disable Style/MultilineOperationIndentation
|
||||||
def call(env)
|
def call(env)
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue