Sha256: 71e24c68a6122707b97dbaaa3e5be6a0e11866d9d5b4393327e3aeeb9eb2a897
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
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) include Draper::ViewContext end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.18.0 | lib/draper/system.rb |