aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/primary_keys_test.rb
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-02-22 21:22:22 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-22 21:22:22 +0000
commit630e709ea6cb535b45a9cbd89c08c572646f5608 (patch)
tree5478b9f0bd4a464195bc78e6e6f9147bcd6e102e /activerecord/test/cases/primary_keys_test.rb
parenta5b83123177b41a1b9cc7fabe89e408228efcd19 (diff)
downloadrails-630e709ea6cb535b45a9cbd89c08c572646f5608.tar.gz
rails-630e709ea6cb535b45a9cbd89c08c572646f5608.tar.bz2
rails-630e709ea6cb535b45a9cbd89c08c572646f5608.zip
Clarify use of params in `direct`
Since a `direct` url helper block is evaluated using `instance_exec` then methods that are available in the instance context can be accessed, e.g. the params object in a controller action or view. This wasn't clear from the example so expand on that point and add a test case for this situation.
Diffstat (limited to 'activerecord/test/cases/primary_keys_test.rb')
0 files changed, 0 insertions, 0 deletions