Browse Source

fix: define log and current_user instance vars in label_from_value (housing prov.)

fix-remove-attr-accessors-from-questions-in-cldc-1723
Sam Seed 2 years ago
parent
commit
37d843915f
  1. 5
      app/models/form/lettings/questions/stock_owner.rb

5
app/models/form/lettings/questions/stock_owner.rb

@ -34,7 +34,10 @@ class Form::Lettings::Questions::StockOwner < ::Form::Question
answer_options
end
def label_from_value(value, _log = nil, _user = nil)
def label_from_value(value, log = nil, user = nil)
@log = log
@current_user = user
return unless value
answer_options[value]

Loading…
Cancel
Save