Sha256: 16ddb7ea2523935d5e8d3e617250d6a4d715a95b65e0a8d6263496b849bae827

Contents?: true

Size: 548 Bytes

Versions: 7

Compression:

Stored size: 548 Bytes

Contents

# encoding: utf-8


class Caterpillar::ApplicationController < ActionController::Base

  layout 'basic'

  helper 'Caterpillar::Application'

  # Rails-portlet has session cookie support.
  #session :disabled => true

  # Import security filters
  include Caterpillar::Security
  secure_portlet_sessions


  ### Used for navigating the test bench

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

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
caterpillar-1.4.4 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.4.3 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.4.2 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.4.1 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.4.0 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.3.1 portlet_test_bench/controllers/caterpillar/application.rb
caterpillar-1.2.5 portlet_test_bench/controllers/caterpillar/application.rb