GitHub PullRequestReviewCommentEvent at 2014-05-17 03:09:49
Repository: rails-datatables
Actor: houndci
Payload: {"comment":{"url":"https://api.github.com/repos/antillas21/rails-datatables/pulls/comments/12765709","id":12765709,"diff_hunk":"@@ -0,0 +1,118 @@\n+module RailsDatatables\n+  class Base\n+    extend Forwardable\n+    class MethodNotImplementedError < StandardError; end\n+\n+    attr_reader :view, :options, :sortable_columns, :searchable_columns\n+    def_delegator :@view, :params, :params\n+\n+    def initialize(view, options = {})\n+      @view = view\n+      @options = options\n+    end\n+\n+    def sortable_columns\n+      @sortable_columns ||= []\n+    end\n+\n+    def searchable_columns\n+      @searchable_columns ||= []\n+    end\n+\n+    def data\n+      raise MethodNotImplementedError, \"Please implement this method in your class.\"\n+    end\n+\n+    def get_raw_records\n+      raise MethodNotImplementedError, \"Please implement this method in your class.\"\n+    end\n+    \n+    def as_json(options = {})\n+      {\n+        sEcho: params[:sEcho].to_i,\n+        iTotalRecords: get_raw_records.count,\n+        iTotalDisplayRecords: filter_records(get_raw_records).count,\n+        aaData: data\n+      }\n+    end\n+\n+","path":"lib/rails_datatables/base.rb","position":39,"original_position":39,"commit_id":"912069efba92fc5710239b3066d273538d15d240","original_commit_id":"912069efba92fc5710239b3066d273538d15d240","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra blank line detected.","created_at":"2014-05-17T03:09:49Z","updated_at":"2014-05-17T03:09:49Z","html_url":"https://github.com/antillas21/rails-datatables/pull/1#discussion_r12765709","pull_request_url":"https://api.github.com/repos/antillas21/rails-datatables/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/antillas21/rails-datatables/pulls/comments/12765709"},"html":{"href":"https://github.com/antillas21/rails-datatables/pull/1#discussion_r12765709"},"pull_request":{"href":"https://api.github.com/repos/antillas21/rails-datatables/pulls/1"}}}}