diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-01-15 13:41:39 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-01-15 13:41:39 +0000 |
commit | b5edc55d9fc3f6fc87ab06b5897917e051a82aef (patch) | |
tree | db6b8adacb9552cf7b67467d4a266af5f4562d23 /actionview/test/fixtures | |
parent | eec4c2e978be15b85ba8f3efa054cb43acf1bdda (diff) | |
download | rails-b5edc55d9fc3f6fc87ab06b5897917e051a82aef.tar.gz rails-b5edc55d9fc3f6fc87ab06b5897917e051a82aef.tar.bz2 rails-b5edc55d9fc3f6fc87ab06b5897917e051a82aef.zip |
Allow render locals to be assigned to instance variables
In #26672 we blocked use of Ruby keywords as identifiers for view
locals but inadvertently broke the use of instance variable names
as identifiers. Whilst not explicitly documented this behavior has
been around for a long time and there's no need to break it now.
Fixes #27480.
Diffstat (limited to 'actionview/test/fixtures')
-rw-r--r-- | actionview/test/fixtures/test/render_file_instance_variable.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/test/fixtures/test/render_file_instance_variable.erb b/actionview/test/fixtures/test/render_file_instance_variable.erb new file mode 100644 index 0000000000..5344ac8a66 --- /dev/null +++ b/actionview/test/fixtures/test/render_file_instance_variable.erb @@ -0,0 +1 @@ +<%= @foo %>
\ No newline at end of file |