Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (19 sloc) 0.497 kB
module Draper
class System
def self.setup_action_controller(component)
component.class_eval do
include Draper::ViewContext
extend Draper::HelperSupport
before_filter lambda {|controller|
Draper::ViewContext.current = nil
Draper::ViewContext.current_controller = controller
}
end
end
def self.setup_action_mailer(component)
component.class_eval do
include Draper::ViewContext
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.