Skip to content

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.

3 participants