Module: ActiveBookings::Bookable
- Defined in:
- lib/active_bookings/bookable.rb,
lib/active_bookings/bookable/core.rb
Defined Under Namespace
Modules: Core
Instance Method Summary collapse
- #bookable? ⇒ Boolean
-
#is_bookable(options = {}) ⇒ Object
Make a model bookable.
Instance Method Details
#bookable? ⇒ Boolean
4 5 6 |
# File 'lib/active_bookings/bookable.rb', line 4 def bookable? false end |
#is_bookable(options = {}) ⇒ Object
Make a model bookable
Example:
class Room < ActiveRecord::Base
is_bookable
end
15 16 17 |
# File 'lib/active_bookings/bookable.rb', line 15 def is_bookable(={}) bookable() end |