Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bessey
Copy link

@bessey bessey commented May 24, 2016

As discussed in #39 its nice to have the option to access the context (AR instance) from the scrub strategy. this allows that.

As discussed in IFTTT#39 its nice to have the option to access the context (AR instance) from the scrub strategy. this allows that.
value.split("").shuffle.join
else
strategy.call(value)
strategy.arity == 1 ? strategy.call(value) : strategy.call(value, instance)
Copy link
Author

Choose a reason for hiding this comment

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

If this was a Proc we could just do strategy.call(value, instance), unfortunately lambdas are fussy about the argument count when called.

@nettofarah
Copy link
Contributor

This looks awesome, @bessey!
Thank you so much :)

@nettofarah nettofarah merged commit b40fd2a into IFTTT:master May 25, 2016
@nettofarah
Copy link
Contributor

Hey, @bessey. Just published 0.4.0.
Your changes are in! Thanks again!

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