Sha256: 50b79ba2b38ffbe8c169576ad634686db4e78fa82db8ed7b5bca9f048b7adc61
Contents?: true
Size: 696 Bytes
Versions: 170
Compression:
Stored size: 696 Bytes
Contents
module CabooseRets class RetsController < ApplicationController # GET /admin/rets/import def admin_import_form return if !user_is_allowed('rets_properties', 'edit') render :layout => 'caboose/admin' end # POST /admin/rets/import def admin_import return if !user_is_allowed('rets_properties', 'edit') mui = params[:mls] CabooseRets::RetsImporter.delay(:priority => 10, :queue => 'rets').import_properties(mui, true) resp = Caboose::StdClass.new resp.success = "The property is being imported from MLS. This may take a few minutes depending on how many images it has." render :json => resp end end end
Version data entries
170 entries across 170 versions & 1 rubygems