Sha256: 0dbfe2226b5097446686a1deaec799064052b5adca81bee121a4f30b49b15496

Contents?: true

Size: 790 Bytes

Versions: 8

Compression:

Stored size: 790 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
  end
end

Draper::System.setup(:action_controller)

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
draper-0.14.0 spec/support/samples/application_controller.rb
draper-0.12.3 spec/support/samples/application_controller.rb
draper-0.12.2 spec/support/samples/application_controller.rb
draper-0.13.0 spec/support/samples/application_controller.rb
draper-0.12.1 spec/support/samples/application_controller.rb
draper-0.12.0 spec/support/samples/application_controller.rb
draper-0.11.1 spec/support/samples/application_controller.rb
draper-0.11.0 spec/support/samples/application_controller.rb