app/services/without_timestamps.rb
Method has too many lines. [7/5] (https://github.com/bbatsov/ruby-style-guide#short-methods) Open
Open
def self.run
old = ActiveRecord::Base.record_timestamps
ActiveRecord::Base.record_timestamps = false
begin
yield
- Read upRead up
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.