aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
authorZog2018-04-04 09:15:59 +0200
committerJohan Van Ryseghem2018-04-04 11:08:20 +0200
commita77307ca49c57dc18823f6aece2424ccb3c5a7c2 (patch)
treea791261bf42ff23d92aaaa2a2f82d9c979b98e07 /app/models/custom_field.rb
parentf946eb8d72a5601020c420b33225c31b12277be4 (diff)
downloadchouette-core-a77307ca49c57dc18823f6aece2424ccb3c5a7c2.tar.bz2
Fix specs
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 62c43f1b4..98cb38614 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -38,7 +38,7 @@ class CustomField < ActiveRecord::Base
@valid = false
end
attr_accessor :owner
-
+
delegate :code, :name, :field_type, to: :@custom_field
def options
@@ -73,7 +73,8 @@ class CustomField < ActiveRecord::Base
def initialize_custom_field
end
- def preprocess_value_for_assignment
+ def preprocess_value_for_assignment val
+ val
end
def render_partial