Skip to content

Conversation

henrik
Copy link
Contributor

@henrik henrik commented May 12, 2016

As discussed in #381.

Verified that both Rails and Sinatra parse [] in params to nested hashes this way.

Per #396, maybe "split_test" would be a better namespace?

# frozen_string_literal: true
module Split
module Helper
AB_OVERRIDE_PARAM = "ab_test"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named it this way because I thought this module was imported into user code, but it seems that doesn't happen directly, so maybe "AB_" could be stripped.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we can drop the AB_

@andrew
Copy link
Member

andrew commented May 16, 2016

Looking good, will merge this when ready to release 2.0.0

Verified that both Rails and Sinatra parse [] in params to nested hashes this way.
@henrik
Copy link
Contributor Author

henrik commented May 16, 2016

@andrew Cool! Just force-pushed (for a cleaner log) removal of the AB_ constant prefix.

@andrew andrew merged commit 0b67045 into splitrb:master Jul 17, 2016
@andrew
Copy link
Member

andrew commented Jul 17, 2016

Shipped in v2.0.0: https://github.com/splitrb/split/releases/tag/v2.0.0 :shipit:

divineforest pushed a commit to procommerz/split that referenced this pull request Oct 14, 2016
Verified that both Rails and Sinatra parse [] in params to nested hashes this way.
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