Sha256: 084267db8ef4c3dfe44be3912c52eb8e5039538aebbebc03f215ebc19dd82aed
Contents?: true
Size: 684 Bytes
Versions: 50
Compression:
Stored size: 684 Bytes
Contents
module CabooseRets class RetsController < ApplicationController # GET /admin/rets/import def admin_import_form return if !user_is_allowed('properties', 'edit') render :layout => 'caboose/admin' end # POST /admin/rets/import def admin_import return if !user_is_allowed('properties', 'edit') mls_acct = params[:mls_acct].to_i CabooseRets::RetsImporter.delay.import_property(mls_acct) 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
50 entries across 50 versions & 1 rubygems