lib/rails_ops/operation/model.rb in rails_ops-1.4.1 vs lib/rails_ops/operation/model.rb in rails_ops-1.4.2
- old
+ new
@@ -68,10 +68,10 @@
if name && _model_class.respond_to?(:virtual_model_name=)
_model_class.virtual_model_name = ActiveModel::Name.new(_model_class, nil, name.to_s)
end
# Set virtual STI name if given.
- if model_class && model_class.name
+ if model_class&.name
_model_class.virtual_sti_name = model_class.name
end
# 108386: Make the model class non-anonymous in order for it to be
# marshallable. The model class still retains its original model_name