In droppable.rb, safe_constantize is used. This means that whenever you call some_rails_model.to_liquid, instead of throwing a NameError: unitialized constant SomeRailsModelDrop, we get NoMethodError: undefined methodnew' for nil:NilClass`
So, I think that constantize would be better here than safe_constantize.
In droppable.rb,
safe_constantize
is used. This means that whenever you callsome_rails_model.to_liquid
, instead of throwing aNameError: unitialized constant SomeRailsModelDrop
, we getNoMethodError: undefined method
new' for nil:NilClass`So, I think that
constantize
would be better here thansafe_constantize
.