Skip to content

Is it possible to get all messages after a datetime? #4

Open
@ffabreti

Description

@ffabreti

Dennis,
I am trying to make a chat with your gem where parent/children are chatroom/messages.
If I setup Message.all( ), everytime a message is created Message.all() is called and fetches all messages.
That is fine when you have a dozen messages, but if you have thousand of messages...
So, I thought of passing an object to .all(), like you can do on .create(), so that I can filter messages after some date on Rails controller. Something like:
Message.all({last: 'Sat Apr 09 2016 00:32:13 GMT-0300 (BRT)'}, function() {...} )

Would that be possible with current Entangled?
How and Where would be better to hack such a feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions