railscasts/221-subdomains-in-rails-3 — pull request #1 by philfreo (2014-01-05 21:20:02+00:00)
Title: remove unnecessary 'self.' in Subdomain?

Not sure if this is a typo or if things have changed in Rails 4, but I was trying to do something similar and had to remove 'self.' from the method name in order to get this to work in my Rails 4 app. There's an example in the docs similar, here: http://guides.rubyonrails.org/routing.html#advanced-constraints