This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
31148cd6be
rails--rails
/
actionpack
/
test
/
fixtures
/
helpers1_pack
/
pack1_helper.rb
8 lines
97 B
Ruby
Raw
Normal View
History
Unescape
Escape
Use frozen string literal in actionpack/
2017-07-24 16:20:53 -04:00
# frozen_string_literal: true
Fix sorting of helpers from different paths When more than one directory for helpers is provided to a controller, it should preserver the order of directories. Given 2 paths: MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"] helpers from dir1 should be loaded first. Before this commit, all helpers were mixed and then sorted alphabetically, which essentially would require to rename helpers to get desired order. This is a problem especially for engines, where you would like to be able to predict accurately which engine helpers will load first. (closes #6496)
2012-05-27 08:01:44 -04:00
module
Pack1Helper
def
conflicting_helper
"
pack1
"
end
end
Copy permalink