Sha256: b7146423d890e8ad306ad13bf6efb9b2c550d58e14e4c0c563338b1e4a2c74bc

Contents?: true

Size: 439 Bytes

Versions: 3

Compression:

Stored size: 439 Bytes

Contents

class Caterpillar::ApplicationController < ActionController::Base

  layout 'basic'

  helper 'Caterpillar::Application'

  before_filter :is_test_selected

  # Rails-portlet does not have session cookie support.
  # But flash messages require this.
  #session :disabled => true

  # If controller is not ApplicationController, test is selected.
  def is_test_selected
    @test_is_selected = self.class.to_s[/Application/].nil?
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
caterpillar-1.0.7 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.0.6 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.0.5 portlet_test_bench/controllers/caterpillar/application.rb