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

Version Path
caboose-rets-0.1.16 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.15 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.14 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.13 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.12 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.11 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.10 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.9 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.8 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.7 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.6 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.5 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.4 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.3 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.2 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.1.1 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.0.87 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.0.86 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.0.85 app/controllers/caboose_rets/rets_controller.rb
caboose-rets-0.0.84 app/controllers/caboose_rets/rets_controller.rb