blob: 8cde89db0c86d690a0d31728a9f4bb1c29647d1b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | class ApplicationController < ActionController::Base
  protect_from_forgery
  before_filter :authenticate_user!
  protected
  def current_organisation
    current_user.organisation if current_user
  end
  helper_method :current_organisation
  def begin_of_association_chain
    current_organisation
  end
end
 |