def call_hook_safe(key)
      hook = self.get_hook(key)
      if hook
        # provides hook with model and controller
        hook.call(self, PublicActivity.get_controller)
      else
        true
      end
    end
def call_hook_safe(key)
      hook = self.get_hook(key)
      if hook
        # provides hook with model and controller
        hook.call(self, PublicActivity.get_controller)
      else
        true
      end
    end
Calls hook safely.
 If a hook for given action exists, calls it with model (self) and
 controller (if available, see {StoreController})
 @param key (see #get_hook)
 @return [Boolean] if hook exists, it's decision, if there's no hook, true
 @since 0.4.0
 @api private