Method: Mcfly::Controller#user_for_mcfly

Defined in:
lib/mcfly/controller.rb

#user_for_mcflyObject

Returns the user who is responsible for any changes that occur. By default this calls ‘current_user` and returns the result.

Override this method in your controller to call a different method, e.g. ‘current_person`, or anything you like.



12
13
14
# File 'lib/mcfly/controller.rb', line 12

def user_for_mcfly
  current_user rescue nil
end