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