Fix last commit
This commit is contained in:
parent
174cf9f503
commit
4f98673205
1 changed files with 0 additions and 11 deletions
|
|
@ -1,11 +0,0 @@
|
||||||
module FilterScopeable
|
|
||||||
extend ActiveSupport::Concern
|
|
||||||
|
|
||||||
def filter_scope(name, block)
|
|
||||||
define_method(name) do |filter_value|
|
|
||||||
return self if filter_value.blank?
|
|
||||||
|
|
||||||
instance_exec(filter_value, &block)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
en
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue