lib/activity_notification/controllers/common_controller.rb
# Returns JavaScript view for ajax request or redirects to back as default.
# @api protected
# @return [Responce] JavaScript view for ajax request or redirects to back as default
Returns JavaScript view for ajax request or redirects to back as default.
Returns JavaScript view for ajax request or redirects to back as default .
def return_back_or_ajax
        set_index_options
        respond_to do |format|
          if request.xhr?
            load_index if params[:reload].to_s.to_boolean(true)
            format.js
          else
            compatibly_redirect_back(@index_options) and return
          end
        end
      end
def return_back_or_ajax set_index_options respond_to do | format | if request . xhr? load_index if params [ :reload ] . to_s . to_boolean ( true ) format . js else compatibly_redirect_back ( @index_options ) and return end end end
Returns JavaScript view for ajax request or redirects to back as default.
Returns JavaScript view for ajax request or redirects to back as default .
JavaScript view for ajax request or redirects to back as default
JavaScript view for ajax request or redirects to back as default
Responce
api
None