Sha256: de28af887aab1dcb17ece966425af21c82d28f12d50a260cc238dee5691af915
Contents?: true
Size: 586 Bytes
Versions: 181
Compression:
Stored size: 586 Bytes
Contents
module ActionController module Railties module Helpers def inherited(klass) super return unless klass.respond_to?(:helpers_path=) if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_helpers_paths) } paths = namespace.railtie_helpers_paths else paths = ActionController::Helpers.helpers_path end klass.helpers_path = paths if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers klass.helper :all end end end end end
Version data entries
181 entries across 176 versions & 12 rubygems