Sha256: a3ba35dd468e6ba2f27e2f47190616fe9e18e96f3833af79cd2671d891738a64

Contents?: true

Size: 834 Bytes

Versions: 2

Compression:

Stored size: 834 Bytes

Contents

require './spec/support/samples/application_helper'

module ActionController
  class Base
    @@before_filters = []
    def self.before_filters
      @@before_filters
    end
    def self.before_filter(name)
      @@before_filters << name
    end
    def self.helper(mod)
      extend mod
    end
  end
end

class ApplicationController < ActionController::Base
  extend ActionView::Helpers
  extend ActionView::Helpers::TagHelper
  extend ActionView::Helpers::UrlHelper
  extend ApplicationHelper    
  
  def view_context
    @view_context ||= ApplicationController
  end
  
  def view_context=(input)
    @view_context = input
  end
  
  def self.hello
    "Hello!"
  end
  
  def self.capture(&block)
    @@capture = true
    block.call
  end
  
  def self.capture_triggered
    @@capture ||= false
  end
end

Draper::System.setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
draper-0.10.0 spec/support/samples/application_controller.rb
draper-0.9.5 spec/support/samples/application_controller.rb