mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Refactor status retrieval in CustomerAppointment to use constant directly
This commit is contained in:
1 parent
48aa873a02
commit
625b970f29
3 files changed
+2
-6
No files matched your search
@@ -108,10 +108,6 @@ class CustomerAppointment < ActiveRecord::Base
|
||||
subject
|
||||
end
|
||||
|
||||
def self.statuses
|
||||
STATUSES
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def log(msg)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<%# Calendar Status Legend Key %>
|
||||
<%
|
||||
# Collect status keys from CustomerAppointment enum
|
||||
statuses = CustomerAppointment.statuses
|
||||
statuses = CustomerAppointment::STATUSES
|
||||
%>
|
||||
|
||||
<% if statuses.any? %>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<%# Quick Status Action Buttons %>
|
||||
<%
|
||||
statuses = CustomerAppointment.statuses
|
||||
statuses = CustomerAppointment::STATUSES
|
||||
current_status = @appointment.status.to_s.parameterize.underscore
|
||||
%>
|
||||
<div class="appointment-quick-actions">
|
||||
|
||||
Reference in new issue
Block a user