aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/arel/attributes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/arel/attributes.rb')
-rw-r--r--activerecord/lib/arel/attributes.rb5
1 files changed, 3 insertions, 2 deletions
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