Class: TermsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/terms_controller.rb

Overview

Copyright © 2010-2011, Diaspora Inc. This file is

licensed under the Affero General Public License version 3 or later.  See
the COPYRIGHT file.

Instance Method Summary collapse

Instance Method Details

#indexObject


9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/terms_controller.rb', line 9

def index
  @css_framework = :bootstrap
  partial_dir = Rails.root.join('app', 'views', 'terms')
  if partial_dir.join('terms.haml').exist? ||
      partial_dir.join('terms.erb').exist?
    render :terms
  else
    render :default
  end
end