assaf/vanity — pull request #239 by sebjacobs (2014-12-31 11:53:28+00:00)
Title: Introduce Ruby 2.2 support.

Ruby 2.2 introduced a change into how default arguments are parsed[1].

Now when you wish to use a method as a default argument you need to be
explicit by using parenthasis.

For example

`def bar(foo=foo)`

will need to be re-written

`def bar(foo=foo())`

This commit introduces a fix for this issue.

*Note* I initially looked into updating the specs (to use ruby 2.2.0),
however I ran into a number of issues with the appraisal test suite and
older versions of rails.

[1]https://bugs.ruby-lang.org/issues/10314