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