Skip to content

Conversation

@nfm
Copy link

@nfm nfm commented Jul 30, 2013

In #is_robot? and #is_ignore_ip_address?, request is assumed to be accessible.
As a result, the Split::Helper module can only really be included in a
Controller context.

This commit removes that requirement by conditionally checking that request is
defined by attempting to call methods on it.

In #is_robot? and #is_ignore_ip_address?, request is assumed to be
accessible. As a result, the Split::Helper module can only really be
included in a Controller context.

This commit removes that requirement by conditionally checking that
request is defined by attempting to call methods on it.
@andrew
Copy link
Member

andrew commented Jul 31, 2013

Thanks!

andrew added a commit that referenced this pull request Jul 31, 2013
…t-helper

Ensure request is defined before calling methods on it
@andrew andrew merged commit b8e1dd5 into splitrb:master Jul 31, 2013
@nfm nfm deleted the remove-dependency-on-request-in-split-helper branch July 31, 2013 11:49
@andrew
Copy link
Member

andrew commented Aug 8, 2013

I've just released this as part of v0.6.4, thanks again!

https://github.com/andrew/split/releases/tag/v0.6.4

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.

2 participants