Permalink
Browse files

[account_location] add #account_subdomain as helper method

  • Loading branch information...
technoweenie committed Mar 25, 2006
1 parent 00d7fd2 commit fc61507ea80c12c50ffe02803bcbeae9fd13788a
Showing with 2 additions and 2 deletions.
  1. +1 −1 README
  2. +1 −1 lib/account_location.rb
View
2 README
@@ -15,7 +15,7 @@ Example:
protected
def find_account
- @account = Account.find_by_username(account_domain)
+ @account = Account.find_by_username(account_subdomain)
end
end
View
@@ -20,7 +20,7 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
module AccountLocation
def self.included(controller)
- controller.helper_method(:account_domain, :account_host, :account_url)
+ controller.helper_method(:account_domain, :account_subdomain, :account_host, :account_url)
end
protected

0 comments on commit fc61507

Please sign in to comment.