metamaps--metamaps/app/controllers/conversations_controller.rb
2017-02-04 04:27:08 +00:00

17 lines
No EOL
490 B
Ruby

# frozen_string_literal: true
class ConversationsController < ApplicationController
def conversation
@maps = map_scope(Map.where.not(name: 'Untitled Map').where.not(permission: 'private'))
respond_to do |format|
format.html do
# root url => main/home. main/home renders maps/activemaps view.
redirect_to(root_url) && return if authenticated?
respond_with(@maps, @user)
end
format.json { render json: @maps.to_json }
end
end
end