Permalink
Browse files

removing dead code

  • Loading branch information...
1 parent e0eef11 commit 3f5b984bf33eb1908ed595b8143873e13b070344 @tenderlove tenderlove committed Feb 9, 2012
@@ -112,10 +112,6 @@ def external_attribute_access_code(attr_name, cast_code)
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,
@@ -93,14 +93,6 @@ def attribute_cast_code(attr_name)
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)
@@ -68,16 +68,6 @@ def #{attr_name}=(original_time)
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) &&
@@ -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

0 comments on commit 3f5b984

Please sign in to comment.