fanforce 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fanforce/utils.rb +2 -10
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/utils.rb
CHANGED
@@ -3,16 +3,8 @@ require 'query_string_parser'
|
|
3
3
|
|
4
4
|
module Fanforce::Utils
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
#end
|
9
|
-
|
10
|
-
def blank?(obj)
|
11
|
-
obj.respond_to?(:empty?) ? obj.empty? : !obj
|
12
|
-
end
|
13
|
-
|
14
|
-
def present?(obj)
|
15
|
-
!blank?(obj)
|
6
|
+
def self.included(base)
|
7
|
+
base.extend(Fanforce::Utils)
|
16
8
|
end
|
17
9
|
|
18
10
|
def self.blank?(obj)
|
data/lib/fanforce/version.rb
CHANGED