Skip to content
Extraits de code Groupes Projets
environment.rb 750 octets
Newer Older
  • Learn to ignore specific revisions
  • Raphael's avatar
    Raphael a validé
    #   Copyright (c) 2010, Diaspora Inc.  This file is
    
    Raphael's avatar
    Raphael a validé
    #   licensed under the Affero General Public License version 3.  See
    #   the COPYRIGHT file.
    
    Raphael Sofaer's avatar
    Raphael Sofaer a validé
    # Load the rails application
    require File.expand_path('../application', __FILE__)
    
    maxwell's avatar
    maxwell a validé
    Haml::Template.options[:format] = :html5
    
    Haml::Template.options[:escape_html] = true
    
    danielvincent's avatar
    danielvincent a validé
    
    
    Raphael's avatar
    Raphael a validé
    if File.exists?(File.expand_path("./config/fb_config.yml"))
      # Load facebook connection application credentials
      fb_config  = YAML::load(File.open(File.expand_path("./config/fb_config.yml")))
      FB_API_KEY = fb_config['fb_api_key']
      FB_SECRET  = fb_config['fb_secret']
      FB_APP_ID  = fb_config['fb_app_id']
      HOST       = fb_config['host']
      FACEBOOK   = true
    end
    
    Raphael Sofaer's avatar
    Raphael Sofaer a validé
    # Initialize the rails application
    Diaspora::Application.initialize!