leonid-shevtsov/unobtrusive_flash — pull request #4 by lulalala (2013-05-15 02:12:15+00:00)
Title: localhost causing nil exception.

When using http://localhost/, nil exception will be thrown.
This is because its unusual TLD length cause exception when finding domain.
Use Rails build-in method for finding domain. It will be more accurate since it uses the `tld_length` setting in Rails.