Remove the proxy string_value method

Overload to_s instead
This commit is contained in:
gregoirenovel 2018-12-28 15:37:20 +01:00
parent 9a2341c56c
commit 7cd50531cf
4 changed files with 13 additions and 17 deletions

View file

@ -41,7 +41,7 @@ class Champ < ApplicationRecord
def to_s
if value.present?
string_value
value.to_s
else
''
end
@ -61,10 +61,6 @@ class Champ < ApplicationRecord
private
def string_value
value.to_s
end
def value_for_export
value
end