Improves ransackable_scopes_skip_sanitize_args doc

The readme should make clear, that the ransackable_scopes_skip_sanitize_args method is a model class method, not an instance method.
This commit is contained in:
Eike Send 2019-11-25 10:27:01 +01:00 committed by GitHub
parent cdef85b51d
commit e055c0d4e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ To turn this off on a per-scope basis Ransack adds the following method to
Add the scope you wish to bypass this behavior to ransackable_scopes_skip_sanitize_args:
```ruby
def ransackable_scopes_skip_sanitize_args
def self.ransackable_scopes_skip_sanitize_args
[:scope_to_skip_sanitize_args]
end
```