lib/redmine_clf2/patches/application_controller_patch.rb
def load_clf2_subdomains_file(subdomains_file = nil)
        subdomains_file ||= File.join(Rails.plugins['redmine_clf2'].directory,'config','subdomains.yml')
        if File.exists?(subdomains_file)
          self.subdomains = YAML::load(File.read(subdomains_file))
        else
          logger.error "CLF2 subdomain file not found at #{domain_file}. Subdomain specific languages will not be used."
        end
      end
# Load the subdomains.yml file to configure the subdomain
# to language mapping.  In development mode this will be
# reloaded with each request but in production, it will be cached.
Load the subdomains.yml file to configure the subdomain
to language mapping.  In development mode this will be
reloaded with each request but in production, it will be cached.
Load the subdomains . yml file to configure the subdomain to language mapping . In development mode this will be reloaded with each request but in production it will be cached .
def load_clf2_subdomains_file(subdomains_file = nil)
        subdomains_file ||= File.join(Rails.plugins['redmine_clf2'].directory,'config','subdomains.yml')
        if File.exists?(subdomains_file)
          self.subdomains = YAML::load(File.read(subdomains_file))
        else
          logger.error "CLF2 subdomain file not found at #{domain_file}. Subdomain specific languages will not be used."
        end
      end
def load_clf2_subdomains_file ( subdomains_file = nil ) subdomains_file ||= File . join ( Rails . plugins [ 'redmine_clf2' ] . directory , 'config' , 'subdomains.yml' ) if File . exists? ( subdomains_file ) self . subdomains = YAML :: load ( File . read ( subdomains_file ) ) else logger . error "CLF2 subdomain file not found at #{domain_file}. Subdomain specific languages will not be used." end end
Load the subdomains.yml file to configure the subdomain
to language mapping.
Load the subdomains . yml file to configure the subdomain to language mapping .
subdomains_file