aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_handling.rb
diff options
context:
space:
mode:
authorLauro Caetano <laurocaetano1@gmail.com>2013-12-11 00:05:16 -0200
committerLauro Caetano <laurocaetano1@gmail.com>2013-12-11 01:00:32 -0200
commit23ce3e5fde42d0af9b77ad014bde8f36401fa3b6 (patch)
tree20d6a3b33ffe2d6d50df8bd80e1562abbc13d850 /activerecord/lib/active_record/connection_handling.rb
parent11c0ef58a6cd278fc6b5d81a7724d9bcdb47f623 (diff)
downloadrails-23ce3e5fde42d0af9b77ad014bde8f36401fa3b6.tar.gz
rails-23ce3e5fde42d0af9b77ad014bde8f36401fa3b6.tar.bz2
rails-23ce3e5fde42d0af9b77ad014bde8f36401fa3b6.zip
Prevent invalid code when using dynamic finders with Ruby's reserved words.
The dynamic finder was creating the method signature with the parameters name, which may have reserved words and this way creating invalid Ruby code. Closes: #13261 Example: # Before Dog.find_by_alias('dog name') # Was creating this method def self.find_by_alias(alias, options = {}) # After Dog.find_by_alias('dog name') # Will create this method def self.find_by_alias(_alias, options = {})
Diffstat (limited to 'activerecord/lib/active_record/connection_handling.rb')
0 files changed, 0 insertions, 0 deletions