Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removing dead code
  • Loading branch information
tenderlove committed Feb 9, 2012
1 parent e0eef11 commit 3f5b984
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
4 changes: 0 additions & 4 deletions activerecord/lib/active_record/attribute_methods/read.rb
Expand Up @@ -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,
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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) &&
Expand Down
Expand Up @@ -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

Expand Down

0 comments on commit 3f5b984

Please sign in to comment.