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

[private-methods-in-controllers] prevents split helper-methods to become... #303

Merged
merged 1 commit into from Mar 18, 2015

Conversation

ipoval
Copy link
Contributor

@ipoval ipoval commented Mar 18, 2015

... actions in the Rails controllers

When we use Split gem with Rails we mixin Split::Helper and its methods could potentially became actions in the controllers, since it's public scope right now.
Lets make Helper methods private to prevent possible security problem, and it will also add the possibility for usage like this Split::Helper.ab_test()

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) to 98.14% when pulling 9a1cf62 on ipoval:private-methods-in-controllers into 3483a96 on andrew:master.

@andrew
Copy link
Member

andrew commented Mar 18, 2015

Good catch, thanks again for all this code gardening!

andrew added a commit that referenced this pull request Mar 18, 2015
[private-methods-in-controllers] prevents split helper-methods to become...
@andrew andrew merged commit a382895 into splitrb:master Mar 18, 2015
@ipoval ipoval deleted the private-methods-in-controllers branch March 18, 2015 17:37
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

Successfully merging this pull request may close these issues.

None yet

3 participants