diff --git a/app/helpers/admin/property_hires_helper.rb b/app/helpers/admin/property_hires_helper.rb index 8410d7b..7c44fc4 100644 --- a/app/helpers/admin/property_hires_helper.rb +++ b/app/helpers/admin/property_hires_helper.rb @@ -1,6 +1,7 @@ module Admin::PropertyHiresHelper data = File.open(File.join(File.dirname(__FILE__), '../../../config', 'list.yml')).read $property_list = YAML::load(ERB.new(data).result(binding)).symbolize_keys + include OrbitBackendHelper def check_for_availability(stime, etime, pid, interval=nil, recurring_end_date=nil, time_setting_id=nil) property = Property.find(pid) return {"success" => false, "msg" => I18n.t("property_hire.values_are_not_ok",:default=>"Values are not ok.")} if property.nil? || stime.blank? || etime.blank?