Permalink
Browse files

Added find_account to example

  • Loading branch information...
1 parent a03839f commit de940e5cf2351e4466476c9c83a70b3e325526bf @dhh dhh committed Oct 30, 2005
Showing with 6 additions and 0 deletions.
  1. +6 −0 README
View
6 README
@@ -11,6 +11,12 @@ Example:
class ApplicationController < ActiveRecord::Base
include AccountLocation
+ before_filter :find_account
+
+ protected
+ def find_account
+ @account = Account.find_by_username(account_domain)
+ end
end
class AccountController < ApplicationController

0 comments on commit de940e5

Please sign in to comment.