Fix Style/EmptyLinesAroundModuleBody
This commit is contained in:
parent
74dcacf520
commit
8b35147380
|
@ -67,18 +67,6 @@ Style/DoubleNegation:
|
|||
Exclude:
|
||||
- 'lib/paper_trail.rb'
|
||||
|
||||
# Offense count: 6
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
# SupportedStyles: empty_lines, no_empty_lines
|
||||
Style/EmptyLinesAroundModuleBody:
|
||||
Exclude:
|
||||
- 'lib/paper_trail/frameworks/rails/controller.rb'
|
||||
- 'lib/paper_trail/frameworks/sinatra.rb'
|
||||
- 'lib/paper_trail/has_paper_trail.rb'
|
||||
- 'lib/paper_trail/record_history.rb'
|
||||
- 'lib/paper_trail/reifier.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/EmptyLiteral:
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
module PaperTrail
|
||||
module Rails
|
||||
module Controller
|
||||
|
||||
def self.included(base)
|
||||
before = [
|
||||
:set_paper_trail_enabled_for_controller,
|
||||
|
|
|
@ -2,7 +2,6 @@ require 'active_support/core_ext/object' # provides the `try` method
|
|||
|
||||
module PaperTrail
|
||||
module Sinatra
|
||||
|
||||
# Register this module inside your Sinatra application to gain access to
|
||||
# controller-level methods used by PaperTrail.
|
||||
def self.registered(app)
|
||||
|
@ -32,7 +31,6 @@ module PaperTrail
|
|||
@set_paper_trail_whodunnit_called=true
|
||||
::PaperTrail.whodunnit = user_for_paper_trail if ::PaperTrail.enabled?
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
::Sinatra.register PaperTrail::Sinatra if defined?(::Sinatra)
|
||||
|
|
|
@ -3,7 +3,6 @@ require 'paper_trail/attributes_serialization'
|
|||
|
||||
module PaperTrail
|
||||
module Model
|
||||
|
||||
def self.included(base)
|
||||
base.send :extend, ClassMethods
|
||||
end
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
module PaperTrail
|
||||
|
||||
# Represents the history of a single record.
|
||||
# @api private
|
||||
class RecordHistory
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
module PaperTrail
|
||||
|
||||
# Given a version record and some options, builds a new model object.
|
||||
# @api private
|
||||
module Reifier
|
||||
|
|
Loading…
Reference in New Issue