lib/active_object/object.rb in active_object-2.2.5 vs lib/active_object/object.rb in active_object-2.3.0

- old
+ new

@@ -6,23 +6,23 @@ unless defined?(Rails) def blank? object = self object = object.strip if respond_to?(:strip) - respond_to?(:empty?) ? !!object.empty? : !object + respond_to?(:empty?) ? object.empty? : !object end end def boolean? - [false, true, nil, 0, 1].include?(self) + [false, true, nil, 0, 1].freeze.include?(self) end def false? self == false end def falsey? - [false, nil, 0].include?(self) + [false, nil, 0].freeze.include?(self) end def float? is_a?(Float) end \ No newline at end of file