Skip to content

Commit

Permalink
Bugfix: call Filter also when a controller defines a additional Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
koa committed Apr 27, 2011
1 parent 335707e commit 44ce3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/site.rb
Expand Up @@ -25,7 +25,7 @@ def home
end
# Monkey-Patch the Application-Controller for loading the current site
ApplicationController.class_eval do
before_filter :load_site
prepend_before_filter :load_site
protected
def load_site
@site = Site.find_by_hostname(request.host)
Expand Down

0 comments on commit 44ce3a1

Please sign in to comment.