refactor(export): remove old formatting code from champs
This commit is contained in:
parent
99834e0cf5
commit
371b8b0b46
22 changed files with 1 additions and 373 deletions
|
@ -11,28 +11,6 @@ class Champs::PaysChamp < Champs::TextChamp
|
|||
validates :value, inclusion: APIGeoService.countries.pluck(:name), allow_nil: false, allow_blank: false
|
||||
end
|
||||
|
||||
def for_export(path = :value)
|
||||
case path
|
||||
when :code
|
||||
code
|
||||
when :value
|
||||
name
|
||||
end
|
||||
end
|
||||
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
|
||||
def for_tag(path = :value)
|
||||
case path
|
||||
when :code
|
||||
code
|
||||
when :value
|
||||
name
|
||||
end
|
||||
end
|
||||
|
||||
def selected
|
||||
code || value
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue