Sha256: 153c064a1a6084b88ad5df4d60ff5f088d8b7cff4c14f33473696e8f68a4acaa

Contents?: true

Size: 656 Bytes

Versions: 5

Compression:

Stored size: 656 Bytes

Contents

Rtml::actions_for :rtml do
  def rescue_action_locally
    #on :cancel => embedded_app
    #cache false
    #expires_at { Time.at(0) }

    screen :rescue, :next => "/index.tml" do
      clean_params = request.parameters.clone
      clean_params.delete "action"
      clean_params.delete "controller"
      @request_dump = clean_params.empty? ? "None" : clean_params.inspect.gsub(',', ",\n")

      display :file => "rtml/rescue_action_locally"
    end
  end

  def rescue_action_in_public
    #cache false
    #expires_at { Time.at(0) }

    screen :rescue, :next => '/index.tml' do
      display :file => "rtml/rescue_action_in_public"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtml-2.0.4 builtin/rtml_helpers/rtml/rescue_action.rb
rtml-2.0.3 builtin/rtml_helpers/rtml/rescue_action.rb
rtml-2.0.2 builtin/rtml_helpers/rtml/rescue_action.rb
rtml-2.0.1 builtin/rtml_helpers/rtml/rescue_action.rb
rtml-2.0.0.alpha.1 builtin/rtml_helpers/rtml/rescue_action.rb