rejecting blank strings
This commit is contained in:
parent
dcdfc84f55
commit
2b2082eb09
@ -165,8 +165,8 @@ def default_controller_and_action(to_shorthand=nil)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user