calagator/calagator — pull request #241 by botandrose (2014-12-02 08:05:39+00:00)
Title: simplify Event#url normalization.

Back at it with a simple little refactoring, here.

* Avoids magical AR lifecycle hooks
* Increases locality
* Only runs when url is set
* Replaces regex with semantically-identical and easier-to-grok #include? statement.

Well... nearly identical. Strings starting with "://" will match now, and they wouldn't before. Close enough. ;)