diff options
| -rw-r--r-- | app/models/custom_field.rb | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 4a840744e..402df7fa9 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -38,7 +38,11 @@ class CustomField < ActiveRecord::Base          @valid = false        end -      delegate :code, :name, :field_type, :options, to: :@custom_field +      delegate :code, :name, :field_type, to: :@custom_field + +      def options +        @custom_field.options || {} +      end        def validate          @valid = true | 
