You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
.The text was updated successfully, but these errors were encountered: