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

strong_params для action #8

Open
ai opened this Issue Sep 15, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@ai

ai commented Sep 15, 2018

Add to Action params filtering as in Rails controllers
https://weblog.rubyonrails.org/2012/3/21/strong-parameters/

@wilddima

This comment has been minimized.

Show comment
Hide comment
@wilddima
Owner

wilddima commented Oct 3, 2018

@markfrst

This comment has been minimized.

Show comment
Hide comment
@markfrst

markfrst Oct 11, 2018

Contributor

@wilddima I understood correctly that there must be something in the likeness:

Logux::Actions.new(type: 'user/add', channel: 'project/123', test1: 'asd', test2: 'asd').permit(:type, :channel) # => { type: 'user/add', channel: 'project/123' }

?

Contributor

markfrst commented Oct 11, 2018

@wilddima I understood correctly that there must be something in the likeness:

Logux::Actions.new(type: 'user/add', channel: 'project/123', test1: 'asd', test2: 'asd').permit(:type, :channel) # => { type: 'user/add', channel: 'project/123' }

?

@ai

This comment has been minimized.

Show comment
Hide comment
@ai

ai Oct 11, 2018

Seems like so

ai commented Oct 11, 2018

Seems like so

@markfrst

This comment has been minimized.

Show comment
Hide comment
@markfrst

markfrst Oct 11, 2018

Contributor

okay

Contributor

markfrst commented Oct 11, 2018

okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment