Class: Hyperloop::ActingUser

Inherits:
Object
  • Object
show all
Defined in:
lib/hyper-operation/filters/acting_user.rb

Instance Method Summary collapse

Instance Method Details

#filter(data) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/hyper-operation/filters/acting_user.rb', line 7

def filter(data)

  # Handle nil case
  if data.nil?
    return [nil, nil] if options[:nils]
    return [nil, :nils]
  end

  # otherwise, we win.
  return [data, nil]
end