Sha256: 10ceb4d7d587aa0899bff7c19f8711b005da3fc6d6b9602a8f89a0a92e7301a7

Contents?: true

Size: 698 Bytes

Versions: 124

Compression:

Stored size: 698 Bytes

Contents

require 'caboose'

module CabooseRets
  
  def CabooseRets.get_property(mls)
    return nil if mls.nil?
    models = [
      CabooseRets::ResidentialProperty, 
      CabooseRets::CommercialProperty, 
      CabooseRets::LandProperty, 
      CabooseRets::MultiFamilyProperty
    ]
    models.each do |model|
      return model.find(mls.to_i) if model.exists?(mls.to_i)            
    end
    return nil
  end
  
  class Engine < ::Rails::Engine
    isolate_namespace CabooseRets
    initializer 'caboose_rets.assets.precompile' do |app|            
      app.config.assets.precompile += [
        'caboose_rets/admin_media.js',
        'caboose_rets/caboose_rets.js'
      ]      
    end
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
caboose-rets-0.1.142 lib/caboose_rets/engine.rb
caboose-rets-0.1.141 lib/caboose_rets/engine.rb
caboose-rets-0.1.140 lib/caboose_rets/engine.rb
caboose-rets-0.1.139 lib/caboose_rets/engine.rb
caboose-rets-0.1.138 lib/caboose_rets/engine.rb
caboose-rets-0.1.137 lib/caboose_rets/engine.rb
caboose-rets-0.1.136 lib/caboose_rets/engine.rb
caboose-rets-0.1.135 lib/caboose_rets/engine.rb
caboose-rets-0.1.134 lib/caboose_rets/engine.rb
caboose-rets-0.1.133 lib/caboose_rets/engine.rb
caboose-rets-0.1.132 lib/caboose_rets/engine.rb
caboose-rets-0.1.131 lib/caboose_rets/engine.rb
caboose-rets-0.1.130 lib/caboose_rets/engine.rb
caboose-rets-0.1.129 lib/caboose_rets/engine.rb
caboose-rets-0.1.128 lib/caboose_rets/engine.rb
caboose-rets-0.1.127 lib/caboose_rets/engine.rb
caboose-rets-0.1.126 lib/caboose_rets/engine.rb
caboose-rets-0.1.125 lib/caboose_rets/engine.rb
caboose-rets-0.1.124 lib/caboose_rets/engine.rb
caboose-rets-0.1.123 lib/caboose_rets/engine.rb