| Module | Authorization |
| In: |
lib/in_controller.rb
lib/reader.rb lib/in_model.rb lib/helper.rb lib/authorization.rb |
| AUTH_DSL_FILE | = | "#{RAILS_ROOT}/config/authorization_rules.rb" |
Controller-independent method for retrieving the current user. Needed for model security where the current controller is not available.
# File lib/authorization.rb, line 24
24: def self.current_user
25: $current_user || GuestUser.new
26: end