usefull_scopes 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/usefull_scopes/version.rb +1 -1
- data/lib/usefull_scopes.rb +0 -9
- metadata +1 -1
data/lib/usefull_scopes.rb
CHANGED
@@ -50,15 +50,6 @@ module UsefullScopes
|
|
50
50
|
quoted_term = connection.quote(term + '%')
|
51
51
|
where("#{quoted_table_name}.#{a} ilike #{quoted_term}")
|
52
52
|
}
|
53
|
-
|
54
|
-
scope "with_#{a}", lambda { |value|
|
55
|
-
puts "*** DEPRECATION WARNING: Scope `with_#{a}` is deprecated and will be removed in the following versions. Please, use `with` scope instead."
|
56
|
-
where("#{quoted_table_name}.#{a} = ?", value)
|
57
|
-
}
|
58
|
-
scope "without_#{a}", lambda {
|
59
|
-
puts "*** DEPRECATION WARNING: Scope `without_#{a}` is deprecated and will be removed in the following versions. Please, use `without` scope instead."
|
60
|
-
where("#{quoted_table_name}.#{a} IS NULL")
|
61
|
-
}
|
62
53
|
end
|
63
54
|
end
|
64
55
|
end
|