In Rails to check whether a locals has been defined the method local_assigns.has_key has been created.
Trying to use it in MiddleMan generates an exception because the method does not exist. Using the defined(:whatever) doesn’t work as it always believe the variable is there when it is not.
How can I solve this issue?