-
Notifications
You must be signed in to change notification settings - Fork 7
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
Action cable def with params #22
Comments
Hey there,
that should work |
Thanks for your fast answer, but it doesn't work for me. Outside Channel:
Inside Channel:
When I call this from js the output is: |
argh... I have a bad feeling that maybe ActionCable or something there already defines a |
So yeah it is as I suspected, in rails their own :before/:after methods are defined by some home grown callback functionality. Proposed solution from my side would be an alternative interface into AfterDo where methods are named differently... for lack of a better naming scheme I'll probably name space the methods like Sounds good? |
Yeah! thats sounds really good. |
Hey! I'll work on this and hopefully get it out soon, a quick look at the code also reminded me that you can totally already do this, e.g. here is the definition of
You could just call these method (probably via |
Hi,
def test doesn't work but def test1 works
When I have a def with params like
[ArgumentError - wrong number of arguments (given 0, expected 1)]
It works when I remove:
The text was updated successfully, but these errors were encountered: