metamaps--metamaps/app/controllers/api/maps_controller.rb
2016-03-11 17:16:04 +11:00

11 lines
246 B
Ruby

class Api::MapsController < API::RestfulController
def create
raise CanCan::AccessDenied.new unless current_user.is_logged_in?
instantiate_resouce
resource.user = current_user
create_action
respond_with_resource
end
end