{"action":"created","issue":{"url":"https://api.github.com/repos/Papercloud/paginative/issues/6","labels_url":"https://api.github.com/repos/Papercloud/paginative/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Papercloud/paginative/issues/6/comments","events_url":"https://api.github.com/repos/Papercloud/paginative/issues/6/events","html_url":"https://github.com/Papercloud/paginative/pull/6","id":107462850,"number":6,"title":"Feature/permission dsl","user":{"login":"antonivanopoulos","id":917575,"avatar_url":"https://avatars.githubusercontent.com/u/917575?v=3","gravatar_id":"","url":"https://api.github.com/users/antonivanopoulos","html_url":"https://github.com/antonivanopoulos","followers_url":"https://api.github.com/users/antonivanopoulos/followers","following_url":"https://api.github.com/users/antonivanopoulos/following{/other_user}","gists_url":"https://api.github.com/users/antonivanopoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/antonivanopoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonivanopoulos/subscriptions","organizations_url":"https://api.github.com/users/antonivanopoulos/orgs","repos_url":"https://api.github.com/users/antonivanopoulos/repos","events_url":"https://api.github.com/users/antonivanopoulos/events{/privacy}","received_events_url":"https://api.github.com/users/antonivanopoulos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T08:11:06Z","updated_at":"2015-09-23T01:50:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Papercloud/paginative/pulls/6","html_url":"https://github.com/Papercloud/paginative/pull/6","diff_url":"https://github.com/Papercloud/paginative/pull/6.diff","patch_url":"https://github.com/Papercloud/paginative/pull/6.patch"},"body":" Adds a permissive DSL method, `allow_paginative_on`, to the model extension to whitelist pagination fields\r\n\r\nBy using `allow_paginative_on`, we can specify fields that we want to allow pagination on for the model via requests from the client, rather than opening up everything. This change is also two-fold, in that the method can take in hash items, already mapped to a table and column, allowing for pagination on a `JOIN`'d table. By default, the specified name will be mapped to the classes table, with the specified name.\r\n\r\ni.e.\r\n```\r\nallow_paginative_on :name\t \t\t\t\t\t#=> { name: 'my_model_table.name }\r\nallow_paginative_on name: 'other_model_table.name' \t#=> { name: 'other_model_table.name }\r\n```"},"comment":{"url":"https://api.github.com/repos/Papercloud/paginative/issues/comments/142470446","html_url":"https://github.com/Papercloud/paginative/pull/6#issuecomment-142470446","issue_url":"https://api.github.com/repos/Papercloud/paginative/issues/6","id":142470446,"user":{"login":"RustComet","id":4001414,"avatar_url":"https://avatars.githubusercontent.com/u/4001414?v=3","gravatar_id":"","url":"https://api.github.com/users/RustComet","html_url":"https://github.com/RustComet","followers_url":"https://api.github.com/users/RustComet/followers","following_url":"https://api.github.com/users/RustComet/following{/other_user}","gists_url":"https://api.github.com/users/RustComet/gists{/gist_id}","starred_url":"https://api.github.com/users/RustComet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RustComet/subscriptions","organizations_url":"https://api.github.com/users/RustComet/orgs","repos_url":"https://api.github.com/users/RustComet/repos","events_url":"https://api.github.com/users/RustComet/events{/privacy}","received_events_url":"https://api.github.com/users/RustComet/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T01:50:33Z","updated_at":"2015-09-23T01:50:33Z","body":"@antonivanopoulos README looks good! :+1: \r\n"}}