diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 01:07:40 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 01:07:40 -0500 |
commit | 6ef13ec5d29b3ec66900c60bcfdf1ac5be8d20ac (patch) | |
tree | 930e5b1db4be822d6084cdb01da136f98a44fa55 /lib | |
parent | 1f5e99bb9c0da87deee796dd31f8e130a4cfd40b (diff) | |
download | rails-6ef13ec5d29b3ec66900c60bcfdf1ac5be8d20ac.tar.gz rails-6ef13ec5d29b3ec66900c60bcfdf1ac5be8d20ac.tar.bz2 rails-6ef13ec5d29b3ec66900c60bcfdf1ac5be8d20ac.zip |
Remove dead code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/table.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/arel/table.rb b/lib/arel/table.rb index 0e7214f269..3e06f94272 100644 --- a/lib/arel/table.rb +++ b/lib/arel/table.rb @@ -13,7 +13,6 @@ module Arel def initialize(name, as: nil, type_caster: nil) @name = name.to_s - @columns = nil @type_caster = type_caster # Sometime AR sends an :as parameter to table, to let the table know @@ -106,16 +105,5 @@ module Arel protected attr_reader :type_caster - - private - - def attributes_for columns - return nil unless columns - - columns.map do |column| - Attributes.for(column).new self, column.name.to_sym - end - end - end end |