Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4025

Show
Ignore:
Timestamp:
03/25/06 18:55:32 (2 years ago)
Author:
rick
Message:

[account_location] add #account_subdomain as helper method

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/account_location/lib/account_location.rb

    r2874 r4025  
    2121module AccountLocation 
    2222  def self.included(controller) 
    23     controller.helper_method(:account_domain, :account_host, :account_url) 
     23    controller.helper_method(:account_domain, :account_subdomain, :account_host, :account_url) 
    2424  end 
    2525 
  • plugins/account_location/README

    r2826 r4025  
    1616    protected 
    1717      def find_account 
    18         @account = Account.find_by_username(account_domain) 
     18        @account = Account.find_by_username(account_subdomain) 
    1919      end 
    2020  end