{"action":"created","issue":{"url":"https://api.github.com/repos/bogdan/datagrid/issues/140","labels_url":"https://api.github.com/repos/bogdan/datagrid/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/bogdan/datagrid/issues/140/comments","events_url":"https://api.github.com/repos/bogdan/datagrid/issues/140/events","html_url":"https://github.com/bogdan/datagrid/issues/140","id":54999675,"number":140,"title":"How to add default filter for dynamic filter","user":{"login":"amit-siddhu","id":4046937,"avatar_url":"https://avatars.githubusercontent.com/u/4046937?v=3","gravatar_id":"","url":"https://api.github.com/users/amit-siddhu","html_url":"https://github.com/amit-siddhu","followers_url":"https://api.github.com/users/amit-siddhu/followers","following_url":"https://api.github.com/users/amit-siddhu/following{/other_user}","gists_url":"https://api.github.com/users/amit-siddhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-siddhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-siddhu/subscriptions","organizations_url":"https://api.github.com/users/amit-siddhu/orgs","repos_url":"https://api.github.com/users/amit-siddhu/repos","events_url":"https://api.github.com/users/amit-siddhu/events{/privacy}","received_events_url":"https://api.github.com/users/amit-siddhu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-21T10:09:30Z","updated_at":"2015-01-21T14:00:08Z","closed_at":"2015-01-21T14:00:08Z","body":"Hi Bogdan,\r\n                 I have a filter named dynamic filter, now i want to apply one of it by default on a value like:\r\n``status != 'Done'`` , if i add this in the scope than it never show rows with 'Done' status. status is one of the option in dynamic filter."},"comment":{"url":"https://api.github.com/repos/bogdan/datagrid/issues/comments/70841203","html_url":"https://github.com/bogdan/datagrid/issues/140#issuecomment-70841203","issue_url":"https://api.github.com/repos/bogdan/datagrid/issues/140","id":70841203,"user":{"login":"amit-siddhu","id":4046937,"avatar_url":"https://avatars.githubusercontent.com/u/4046937?v=3","gravatar_id":"","url":"https://api.github.com/users/amit-siddhu","html_url":"https://github.com/amit-siddhu","followers_url":"https://api.github.com/users/amit-siddhu/followers","following_url":"https://api.github.com/users/amit-siddhu/following{/other_user}","gists_url":"https://api.github.com/users/amit-siddhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-siddhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-siddhu/subscriptions","organizations_url":"https://api.github.com/users/amit-siddhu/orgs","repos_url":"https://api.github.com/users/amit-siddhu/repos","events_url":"https://api.github.com/users/amit-siddhu/events{/privacy}","received_events_url":"https://api.github.com/users/amit-siddhu/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T14:00:08Z","updated_at":"2015-01-21T14:00:08Z","body":"many thanks!! Bogdan! for dd5794c and also for:\r\n\r\n\r\n```ruby\r\nif operation == '=~'\r\n        operation = 'like' # like on mysql and ilike on postgresql\r\n        value = \"%#{value}%\"\r\n      end\r\n```\r\n\r\nnow my task is to detect database and use appropriate operator.\r\nActually i forgot to include ```allow_nil: true, allow_blank: true``` after updating datagrid to master."}}