mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix all rubocop violations
This commit is contained in:
parent
23b07019ae
commit
f7d0bd657f
3 changed files with 4 additions and 3 deletions
|
@ -465,12 +465,12 @@ module ActiveRecord
|
|||
@binds = []
|
||||
end
|
||||
|
||||
def << str
|
||||
def <<(str)
|
||||
@parts << str
|
||||
self
|
||||
end
|
||||
|
||||
def add_bind obj
|
||||
def add_bind(obj)
|
||||
@binds << obj
|
||||
@parts << Arel::Nodes::BindParam.new(1)
|
||||
self
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "time"
|
||||
|
||||
module ActiveSupport
|
||||
|
|
|
@ -234,7 +234,7 @@ task :announce do
|
|||
versions = ENV["VERSIONS"] ? ENV["VERSIONS"].split(",") : [ version ]
|
||||
versions = versions.sort.map { |v| Announcement::Version.new(v) }
|
||||
|
||||
raise "Only valid for patch releases" if versions.any?(&:major_or_security?)
|
||||
raise "Only valid for patch releases" if versions.any?(&:major_or_security?)
|
||||
|
||||
if versions.any?(&:rc?)
|
||||
require "date"
|
||||
|
|
Loading…
Reference in a new issue