mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #1593 from r00k/master
Simplify boolean logic into ternary
This commit is contained in:
@@ -113,7 +113,7 @@ class Module
|
||||
raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
|
||||
end
|
||||
|
||||
prefix = options[:prefix] && "#{options[:prefix] == true ? to : options[:prefix]}_" || ''
|
||||
prefix = options[:prefix] ? "#{options[:prefix] == true ? to : options[:prefix]}_" : ''
|
||||
|
||||
file, line = caller.first.split(':', 2)
|
||||
line = line.to_i
|
||||
|
||||
Reference in New Issue
Block a user