fanforce 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fanforce/utils.rb +10 -2
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/utils.rb
CHANGED
@@ -3,8 +3,16 @@ require 'query_string_parser'
|
|
3
3
|
|
4
4
|
module Fanforce::Utils
|
5
5
|
|
6
|
-
def self.included(base)
|
7
|
-
|
6
|
+
#def self.included(base)
|
7
|
+
# base.extend(self)
|
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)
|
8
16
|
end
|
9
17
|
|
10
18
|
def self.blank?(obj)
|
data/lib/fanforce/version.rb
CHANGED