diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-09 14:45:46 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-09 14:45:46 -0800 |
commit | 3f5b984bf33eb1908ed595b8143873e13b070344 (patch) | |
tree | dbf1516b1a6f1c41efbf36b4a38ae0d18f9ff7cb /activerecord | |
parent | e0eef111a31e1e442b60015b7c752cc1e2c21c57 (diff) | |
download | rails-3f5b984bf33eb1908ed595b8143873e13b070344.tar.gz rails-3f5b984bf33eb1908ed595b8143873e13b070344.tar.bz2 rails-3f5b984bf33eb1908ed595b8143873e13b070344.zip |
removing dead code
Diffstat (limited to 'activerecord')
4 files changed, 0 insertions, 29 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 0724082a2d..846ac03d82 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -112,10 +112,6 @@ module ActiveRecord def attribute_cast_code(attr_name) columns_hash[attr_name].type_cast_code('v') end - - def instance_cast_method(attr_name) - "cast_column" - end end # Returns the value of the attribute identified by <tt>attr_name</tt> after it has been typecast (for example, diff --git a/activerecord/lib/active_record/attribute_methods/serialization.rb b/activerecord/lib/active_record/attribute_methods/serialization.rb index 9b1bfa1145..165785c8fb 100644 --- a/activerecord/lib/active_record/attribute_methods/serialization.rb +++ b/activerecord/lib/active_record/attribute_methods/serialization.rb @@ -93,14 +93,6 @@ module ActiveRecord super end end - - def instance_cast_method(attr_name) - if serialized_attributes.include?(attr_name) - "cast_serialized" - else - super - end - end end def type_cast_attribute_for_write(column, value) diff --git a/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb b/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb index 802add9986..20372c5c18 100644 --- a/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb +++ b/activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb @@ -68,16 +68,6 @@ module ActiveRecord end private - def instance_cast_method(attr_name) - column = columns_hash[attr_name] - - if create_time_zone_conversion_attribute?(attr_name, column) - "cast_tz_conversion" - else - super - end - end - def create_time_zone_conversion_attribute?(name, column) time_zone_aware_attributes && !self.skip_time_zone_conversion_for_attributes.include?(name.to_sym) && diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb index 2adc3f4b8e..006742688e 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb @@ -4,13 +4,6 @@ module ActiveRecord module ConnectionAdapters class PostgreSQLAdapter < AbstractAdapter module OID - class Wtf - def type_cast(value) - p :wtf => value - value - end - end - class Type def type; end |