Sha256: d7028118d5e1e1c9485f2cbef231e955d67ab638804e807a4ae12b35af9a130f

Contents?: true

Size: 790 Bytes

Versions: 6

Compression:

Stored size: 790 Bytes

Contents

module Merb::Test::Fixtures
  
  module Abstract
    
    class Testing < Merb::AbstractController
      self._template_root = File.dirname(__FILE__) / "views"
    end
    
    class FilterParent < Testing
      before :print_before_filter
      
      def print_before_filter
        @before_string = "Before"
      end
    end
    
    class FilterChild1 < FilterParent
      before :print_before_filter, :only => :limited
      
      def index
        @before_string.to_s + " Index"
      end
      
      def limited
        @before_string.to_s + " Limited"
      end
    end

    class FilterChild2 < FilterParent
      
      def index
        @before_string.to_s + " Index"
      end
      
      def limited
        @before_string.to_s + " Limited"
      end
    end
    
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
thorero-0.9.4.5 spec/public/abstract_controller/controllers/cousins.rb
merb-core-0.9.4 spec/public/abstract_controller/controllers/cousins.rb
merb-core-0.9.5 spec/public/abstract_controller/controllers/cousins.rb
merb-core-0.9.6 spec/public/abstract_controller/controllers/cousins.rb
merb-core-0.9.7 spec/public/abstract_controller/controllers/cousins.rb
thorero-core-0.9.4.6 spec/public/abstract_controller/controllers/cousins.rb