From a77307ca49c57dc18823f6aece2424ccb3c5a7c2 Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 4 Apr 2018 09:15:59 +0200 Subject: Fix specs --- app/models/custom_field.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/models/custom_field.rb') 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 -- cgit v1.2.3