1
0
Fork 0
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:
Rafael Mendonça França 2017-08-03 17:45:23 -04:00
parent 23b07019ae
commit f7d0bd657f
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require "time"
module ActiveSupport

View file

@ -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"