Module: Rpush::Reflectable

Instance Method Summary collapse

Instance Method Details

#reflect(name, *args) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/rpush/reflectable.rb', line 3

def reflect(name, *args)
  Rpush.reflection_stack.each do |reflection_collection|
    begin
      reflection_collection.__dispatch(name, *args)
    rescue StandardError => e
      Rpush.logger.error(e)
    end
  end
end