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

Version Path
jets-5.0.13 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.12 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.11 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.10 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.9 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.8 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.7 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.6 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.5 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.4 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.3 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.2 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.1 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.0 engines/internal/lib/internal/turbines/helpers.rb
jets-5.0.0.beta1 engines/internal/lib/internal/turbines/helpers.rb