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
ac717d65a3
rails--rails
/
activesupport
/
test
/
autoloading_fixtures
/
html
/
some_class.rb
7 lines
71 B
Ruby
Raw
Normal View
History
Unescape
Escape
Use frozen-string-literal in ActiveSupport
2017-07-09 08:06:36 -04:00
# frozen_string_literal: true
[Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`
2017-07-10 09:39:13 -04:00
Ensure all-caps nested consts marked as autoloaded Previously, an autoloaded constant `HTML::SomeClass` would not be marked as autoloaded by AS::Dependencies. This is because the `#loadable_constants_for_path` method uses `String#camelize` on the inferred file path, which in turn means that, unless otherwise directed, AS::Dependencies watches for loaded constants in the `Html` namespace. By passing the original qualified constant name to `#load_or_require`, this inference step is avoided, and the new constant is picked up in the correct namespace.
2013-07-26 12:37:00 -04:00
module
HTML
class
SomeClass
end
end
Copy permalink