Permalink
Browse files

Removed unused `klass` definitions from types

Only `Date` and `Time` are handled.
  • Loading branch information...
1 parent 17fc6f1 commit 8a6e7631d31b2261f5a9dc6f0adefbe3e72f79d5 @sgrif sgrif committed Jun 6, 2014
@@ -9,10 +9,6 @@ def binary?
true
end
- def klass
- ::String
- end
-
def type_cast_for_database(value)
Data.new(super)
end
@@ -7,10 +7,6 @@ def type
:decimal
end
- def klass
- ::BigDecimal
- end
-
def type_cast_for_schema(value)
value.to_s
end
@@ -7,10 +7,6 @@ def type
:float
end
- def klass
- ::Float
- end
-
alias type_cast_for_database type_cast
private
@@ -7,10 +7,6 @@ def type
:integer
end
- def klass
- ::Fixnum
- end
-
alias type_cast_for_database type_cast
private
@@ -9,10 +9,6 @@ def text?
true
end
- def klass
- ::String
- end
-
private
def cast_value(value)
@@ -48,7 +48,6 @@ def serialized?
end
def klass # :nodoc:
- ::Object
end
def type_cast_for_write(value) # :nodoc:

0 comments on commit 8a6e763

Please sign in to comment.