Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Configure Default Event Names #1

Open
alanjames1987 opened this issue May 30, 2014 · 2 comments
Open

Feature: Configure Default Event Names #1

alanjames1987 opened this issue May 30, 2014 · 2 comments
Labels

Comments

@alanjames1987
Copy link
Owner

An option should exist when creating a model to add default CRUD event names, similar to how CanJS can configure default CRUD urls.

Marilyn.model('someModel', function(){

    this.crud({
        'create' : 'somModel_create',
        'read' : 'somModel_read',
        'readOne' : 'somModel_read_by',
        'update' : 'somModel_update',
        'delete' : 'somModel_delete',
    });

});

These events can then be used by Marilyn to automatically sync data back and forth to the server.

@alanjames1987
Copy link
Owner Author

The backend Socket.IO would have to be configured correctly to use these types of events.

@alanjames1987
Copy link
Owner Author

Backbone, Ember, and Angular models use a REST/ActiveResource type interface to perform these actions. There should be an REST/ActiveResource type interface for Socket.IO that this would follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant