Sha256: c5deb970d99933bf5c42280e896191626aacf33995396e07d548acdac30df881

Contents?: true

Size: 596 Bytes

Versions: 6

Compression:

Stored size: 596 Bytes

Contents

module ActionController
  class Base
    @@before_filters = []
    def self.before_filters
      @@before_filters
    end
    def self.before_filter(name)
      @@before_filters << name
    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
end

Draper::System.setup

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
draper-0.9.3 spec/samples/application_controller.rb
draper-0.9.2 spec/samples/application_controller.rb
draper-0.9.1 spec/samples/application_controller.rb
draper-0.9.0 spec/samples/application_controller.rb
draper-0.8.1 spec/samples/application_controller.rb
draper-0.8.0 spec/samples/application_controller.rb