On Friday, July 21, 2017 at 9:25:23 AM UTC-7, Pedro Vinícius wrote:
>
> Yes! The message disappeared.
>
> But is there another option? Writing this way the model declaration got 
> too big...
>

Subclassing from Sequel::Model(ConnectionsHandler.crm[:customers]) is the 
recommended way.

An alternative is to use an anonymous class:

Customer = Class.new(Sequel::Model)
Customer.dataset = ConnectionsHandler.crm[:customers]
class Customer
  # ...
end

As the deprecation warning states, you can set:

Sequel::Model.require_valid_table = false

And just ignore the problems that temporary invalid model datasets cause.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to