Sha256: e37de45eb4342bcb52b48391f63f6565a4fe01cb492cd303af6c6f64e92dc37a
Contents?: true
Size: 537 Bytes
Versions: 15
Compression:
Stored size: 537 Bytes
Contents
# Implemented this way to remind us how Rails implemented it. # Otherwise, would have just added another module to the include chain in # Jets::Controller::Base. module JetsTurbines module Helpers def inherited(klass) super return unless klass.respond_to?(:helpers_path=) # IE: ActionMailer does not respond to helpers_path= paths = ActionController::Helpers.helpers_path klass.helpers_path = paths if klass.superclass == Jets::Controller::Base klass.helper :all end end end end
Version data entries
15 entries across 15 versions & 1 rubygems