Sha256: f57c164ab0d17d096fa5f99854275346082dc917bc69834fc704df0b090b3e06

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module Draper
  class System
    def self.setup(component)
      if component == :action_controller
        ActionController::Base.send(:include, Draper::ViewContextFilter)
        ActionController::Base.extend(Draper::HelperSupport)
      elsif component == :action_mailer
        ActionMailer::Base.send(:include, Draper::ViewContextFilter)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
draper-0.11.1 lib/draper/system.rb
draper-0.11.0 lib/draper/system.rb