Module: HamsterPowered::HamsterHelper

Defined in:
lib/hamster_powered.rb

Instance Method Summary collapse

Instance Method Details

#as_processing_screen(objects, action, redirect) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hamster_powered.rb', line 6

def as_processing_screen(objects, action, redirect)
  unless objects and action and redirect
    raise "HamsterPowered: missing required arguments"
  end
  
  @hp_objects = objects
  @hp_action = action
  @hp_redirect = redirect
  
  return { inline: "", stream: true, layout: "hamster_powered_layout" }
end