提交 2cdf7302 编写于 作者: R Rafael Mendonça França

Merge pull request #15554 from sgrif/sg-klass

Removed unused `klass` definitions from types
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册