aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
authorZog2018-04-26 09:07:26 +0200
committerZog2018-04-26 09:07:26 +0200
commit37cef4eca7eec2dbfc4be10334c787ce207b466e (patch)
treed628f5d5ab2027bb2d49c27625b42e4c6c28626f /app/models/custom_field.rb
parent25becea7c5c2df57019212f5e5ce7fb0766312ec (diff)
downloadchouette-core-37cef4eca7eec2dbfc4be10334c787ce207b466e.tar.bz2
Fix CustomField specs
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 15aee9a41..b5c08465d 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -147,10 +147,6 @@ class CustomField < ApplicationModel
@raw_value&.to_i
end
- def preprocess_value_for_assignment val
- val&.to_i
- end
-
def validate
@valid = true
return if @raw_value.is_a?(Fixnum) || @raw_value.is_a?(Float)
@@ -171,10 +167,6 @@ class CustomField < ApplicationModel
end
end
- def preprocess_value_for_assignment val
- val
- end
-
def display_value
return unless value
k = options["list_values"].is_a?(Hash) ? value.to_s : value.to_i