Yves Senn
|
2aad0b4168
|
Merge pull request #21250 from ronakjangir47/safe_const
safe_constantize - Added Object scoped missing test cases
|
2015-09-07 08:52:36 +02:00 |
|
Ronak Jangir
|
f96c7d963c
|
safe_constantize - Added Object scoped missing test cases
|
2015-09-06 13:34:24 +05:30 |
|
Guo Xiang Tan
|
6e0f273dfd
|
Use safe_constantize .
Fixes https://github.com/rails/rails/issues/9933.
|
2014-09-02 00:41:00 +08:00 |
|
Aditya Kapoor
|
885ebda266
|
Add Missing Test Cases for the constantize
|
2014-06-07 23:58:38 +05:30 |
|
Nikolay Shebanov
|
7fd36f307a
|
Fix #10932. Treat "" and "::" as invalid on constantize
|
2013-06-14 11:20:15 +04:00 |
|
Aaron Patterson
|
4a7679ebca
|
cleaning up constantize tests
|
2012-11-07 17:13:17 +09:00 |
|
Andrew White
|
3d0e4895cd
|
Handle case where ancestor is not the end of the chain
|
2012-05-19 15:47:35 +01:00 |
|
Marc-Andre Lafortune
|
eb09411460
|
Fix constantize so top level constants are looked up properly.
|
2012-05-19 15:47:35 +01:00 |
|
Marc-Andre Lafortune
|
99e9a733c8
|
Make constantize look down the ancestor chain (excluding Object)
|
2012-05-19 15:47:35 +01:00 |
|
Alex Tambellini
|
7598284c0b
|
safe_constantize should handle wrong constant name NameErrors Fixes #4710
|
2012-01-26 14:19:49 -05:00 |
|
José Valim
|
b2f34d1e35
|
Ensure that constantize just rescues NameError that applies to the constant being currently loaded.
|
2011-09-23 16:21:49 +02:00 |
|
Ryan Oblak
|
310565f537
|
Added ActiveSupport::Inflector.safe_constantize and String#safe_constantize; refactored common constantize tests into ConstantizeTestCases
|
2011-09-23 15:36:33 +02:00 |
|