|
Post by egghead on Aug 18, 2020 15:29:07 GMT
Maybe I'm woefully outdated (haven't used source adapters in ages), but when I try to add a Rhoconnect source adapter, I don't see a sources folder, only a controller and a model are created instead.
Is this normal behaviour? Where do I write my CRUD methods now? 🤔
|
|
|
Post by Alex Epifanov on Aug 18, 2020 21:11:58 GMT
It's in the model, see generated CRUD methods there: query, create, update, delete
|
|
|
Post by egghead on Aug 19, 2020 4:41:43 GMT
Thanks, Alex, but in earlier years, the adapter class inherited from SourceAdapter, now it inherits from Rhoconnect::Model::Base Is there any changes in the code we write for the source adapter as a result of this? Any caveats?
|
|
|
Post by Alex Epifanov on Aug 19, 2020 14:59:07 GMT
|
|
|
Post by egghead on Aug 20, 2020 5:28:37 GMT
Thanks, Alex. I noted this in particular, which indicates a good change from the earlier RC : In previous versions, a Source Adapter consisted only of one class – which is now has been moved to Source Adapter model. “Controller” part of the Source Adapter has been hidden inside of the RhoConnect library code. This posed a significant obstacle in a way how the developer could utilize the code and the common techniques. To overcome this obstacle, RhoConnect 4 provides you with direct access to the Controller allowing you to customize route behavior and utilize all of the powerful sinatra plugins/extensions that are available.
|
|