diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-02 11:02:19 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-02 11:08:01 -0700 |
commit | 0c42be42f37037ca2711da5ae06cf15799a4c437 (patch) | |
tree | 840ca943da93724970b4d94767a5b63d89b927bf /activerecord | |
parent | 151747ff0d13344a12b83d2f92175b7c53d2d39b (diff) | |
download | rails-0c42be42f37037ca2711da5ae06cf15799a4c437.tar.gz rails-0c42be42f37037ca2711da5ae06cf15799a4c437.tar.bz2 rails-0c42be42f37037ca2711da5ae06cf15799a4c437.zip |
Remove unused `Column#with_type`
Now that type casting has nothing to do with columns, our only usage of
this method is gone.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/column.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb index a489141d1a..077d953ca2 100644 --- a/activerecord/lib/active_record/connection_adapters/column.rb +++ b/activerecord/lib/active_record/connection_adapters/column.rb @@ -46,12 +46,6 @@ module ActiveRecord Base.human_attribute_name(@name) end - def with_type(type) - dup.tap do |clone| - clone.instance_variable_set('@cast_type', type) - end - end - def ==(other) other.name == name && other.default == default && |