Merge pull request #1089 from eikes/improve_ransackable_scopes_skip_sanitize_args_docs
Improves ransackable_scopes_skip_sanitize_args doc
This commit is contained in:
commit
a4540e3e77
|
@ -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