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:
parent
cdef85b51d
commit
e055c0d4e6
|
@ -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:
|
Add the scope you wish to bypass this behavior to ransackable_scopes_skip_sanitize_args:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def ransackable_scopes_skip_sanitize_args
|
def self.ransackable_scopes_skip_sanitize_args
|
||||||
[:scope_to_skip_sanitize_args]
|
[:scope_to_skip_sanitize_args]
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue