Class: Stay::BookingQuery
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Stay::BookingQuery
- Defined in:
- app/models/stay/booking_query.rb
Constant Summary collapse
- ACCEPTED =
"accepted".freeze
Instance Method Summary collapse
Instance Method Details
#check_date_change ⇒ Object
19 20 21 |
# File 'app/models/stay/booking_query.rb', line 19 def check_date_change self.state = :request_change if check_in_date_changed? || check_out_date_changed? end |
#set_default_state ⇒ Object
15 16 17 |
# File 'app/models/stay/booking_query.rb', line 15 def set_default_state self.state ||= :send_message end |