mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
rejecting blank strings
This commit is contained in:
@@ -165,8 +165,8 @@ module ActionDispatch
|
||||
end
|
||||
|
||||
hash = {}
|
||||
hash[:controller] = controller if controller
|
||||
hash[:action] = action if action
|
||||
hash[:controller] = controller unless controller.blank?
|
||||
hash[:action] = action unless action.blank?
|
||||
hash
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user