lib/adeia/controller_resource.rb in adeia-0.11.3 vs lib/adeia/controller_resource.rb in adeia-0.11.4

- old
+ new

@@ -31,10 +31,10 @@ @action_name = args.fetch(:action, @controller.action_name) @controller_name = args.fetch(:controller, @controller.controller_path) @token = args.fetch(:token, @controller.request.GET[:token]) @resource = args[:resource] @user = @controller.current_user - @controller.current_user ||= User.new # if not signed in but authorized + @controller.current_user ||= GuestUser.new # if not signed in but authorized @controller.store_location end def load_resource begin