onyxframework / sql

A delightful SQL ORM ☺️
https://api.onyxframework.com/sql
MIT License
91 stars 7 forks source link

Resolve full paths of referenced types to avoid clashes #101

Open vladfaust opened 5 years ago

vladfaust commented 5 years ago
internal_params << T.db_values(type: value.as(Model::Handled::ObjectType))[0]
undefined constant Model::Handled::ObjectType

That's because Handled is looked up within Onyx::SQL::Model. Should be prepended with ::.