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

Drab on selected actions in controller #65

Closed
jung-hunsoo opened this issue Nov 17, 2017 · 2 comments
Closed

Drab on selected actions in controller #65

jung-hunsoo opened this issue Nov 17, 2017 · 2 comments

Comments

@jung-hunsoo
Copy link

jung-hunsoo commented Nov 17, 2017

I'm first to use drab on my new webapp. Currently drab is used in new/edit form, via before_hander.

So I wanted to Drab only some actions like use Drab.Controller, only: [:new, :edit] but no luck.

Is there any way (or plan to) apply selected drabbing?

@jung-hunsoo
Copy link
Author

In addition, how about allowing private function for onload, onconnect, and ondisconnect?

It's unable to call private function for these callbacks.

@grych
Copy link
Owner

grych commented Nov 17, 2017

use Drab.Controller is only for indicate that this controller has the corresponding commander. Commander for Drab is what controller is for phoenix.

Please read the docs for controller, commander and readme.

About the callbacks handlers, they must be public functions.

@grych grych closed this as completed Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants