From 4c0a3d48804a363c7e9272519665a21f601b5248 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sat, 24 Feb 2018 17:15:50 +1030 Subject: Arel: rubocop -a --- activerecord/lib/arel/attributes.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/arel/attributes.rb') diff --git a/activerecord/lib/arel/attributes.rb b/activerecord/lib/arel/attributes.rb index ed4739ebed..c81a7b941b 100644 --- a/activerecord/lib/arel/attributes.rb +++ b/activerecord/lib/arel/attributes.rb @@ -1,11 +1,12 @@ # frozen_string_literal: true -require 'arel/attributes/attribute' + +require "arel/attributes/attribute" module Arel module Attributes ### # Factory method to wrap a raw database +column+ to an Arel Attribute. - def self.for column + def self.for(column) case column.type when :string, :text, :binary then String when :integer then Integer -- cgit v1.2.3 From 354f1c28e81d9846fb9e5346fcca50cf303c12c1 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sat, 24 Feb 2018 18:11:47 +1030 Subject: Arel: :nodoc: all --- activerecord/lib/arel/attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/arel/attributes.rb') diff --git a/activerecord/lib/arel/attributes.rb b/activerecord/lib/arel/attributes.rb index c81a7b941b..35d586c948 100644 --- a/activerecord/lib/arel/attributes.rb +++ b/activerecord/lib/arel/attributes.rb @@ -2,7 +2,7 @@ require "arel/attributes/attribute" -module Arel +module Arel # :nodoc: all module Attributes ### # Factory method to wrap a raw database +column+ to an Arel Attribute. -- cgit v1.2.3