def action_any_of?(*actions)
      actions.any? do |sub_ca|
        if sub_ca.present?
          sub_controller, sub_action = extract_controller_and_action(sub_ca)
          ((self.controller_path == sub_controller) || (sub_controller.blank?)) && (self.action_name == sub_action || (sub_action == '' || sub_action == '*'))
        end
      end
    end
def action_any_of?(*actions)
      actions.any? do |sub_ca|
        if sub_ca.present?
          sub_controller, sub_action = extract_controller_and_action(sub_ca)
          ((self.controller_path == sub_controller) || (sub_controller.blank?)) && (self.action_name == sub_action || (sub_action == '' || sub_action == '*'))
        end
      end
    end
Returns true if current controller and action names equals to any of passed.
 Asterik as action name matches all controller's action.

 Examples:
   <%= "we are in PostsController::index" if action_any_of?("posts#index") %>

   <%= "we are not in PostsController::index" unless action_any_of?("posts#index") %>

   <% if action_any_of?("posts#index", "messages#index") %>
     we are in PostsController or in MessagesController
   <% end %>