Remove the proxy string_value method
Overload to_s instead
This commit is contained in:
parent
9a2341c56c
commit
7cd50531cf
4 changed files with 13 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue