blob: 42e898381f2d7b9652c2de6d21d25b7ef5a15a75 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 | class AccountController < ApplicationController
  before_filter :require_registration_allowed
  before_filter :redirect_if_logged_in
  respond_to :html
  def new
    @user = User.new
  end
  protected
  def require_registration_allowed
    unless APP_CONFIG[:allow_registration]
      redirect_to home_path
    end
  end
end
 |