GitHub PullRequestReviewCommentEvent at 2014-04-04 16:26:04
Repository: yii2
Actor: pmoust
Payload: {"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/11301930","id":11301930,"diff_hunk":"@@ -604,4 +614,61 @@ protected function usingSqlite()\n     {\n         return $this->_usingSqlite;\n     }\n+\n+    /**\n+     * Removes the specified rule.\n+     *\n+     * @param string $name the name of the rule to be removed\n+     * @return boolean whether the rule exists in the storage and has been removed\n+     */\n+    public function removeRule($name)\n+    {\n+        return $this->db->createCommand()->delete($this->ruleTable, ['name' => $name])->execute();\n+    }\n+\n+    /**\n+     * Saves the changes to the rule.\n+     *\n+     * @param Rule $rule the rule that has been changed.\n+     */\n+    public function saveRule(Rule $rule)","path":"framework/rbac/DbManager.php","position":261,"original_position":261,"commit_id":"7d3cf501d00a05ebc79222be2a2fb2ce3e790489","original_commit_id":"7d3cf501d00a05ebc79222be2a2fb2ce3e790489","user":{"login":"pmoust","id":2493339,"avatar_url":"https://avatars.githubusercontent.com/u/2493339?","gravatar_id":"798a9d55848c0f7db067fa9a80a3c677","url":"https://api.github.com/users/pmoust","html_url":"https://github.com/pmoust","followers_url":"https://api.github.com/users/pmoust/followers","following_url":"https://api.github.com/users/pmoust/following{/other_user}","gists_url":"https://api.github.com/users/pmoust/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoust/subscriptions","organizations_url":"https://api.github.com/users/pmoust/orgs","repos_url":"https://api.github.com/users/pmoust/repos","events_url":"https://api.github.com/users/pmoust/events{/privacy}","received_events_url":"https://api.github.com/users/pmoust/received_events","type":"User","site_admin":false},"body":"Perhaps `createRule` and `updateRule` would be better.","created_at":"2014-04-04T16:26:04Z","updated_at":"2014-04-04T16:26:04Z","html_url":"https://github.com/yiisoft/yii2/pull/2974#discussion_r11301930","pull_request_url":"https://api.github.com/repos/yiisoft/yii2/pulls/2974","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments/11301930"},"html":{"href":"https://github.com/yiisoft/yii2/pull/2974#discussion_r11301930"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/2974"}}}}