Module: Reservation
- Defined in:
- lib/reservation.rb,
lib/reservation/daily.rb,
lib/reservation/scopes.rb,
lib/reservation/weekly.rb,
lib/reservation/version.rb,
lib/reservation/interval.rb,
lib/reservation/schedule.rb,
lib/reservation/hour_minute.rb,
lib/reservation/reservation.rb,
lib/reservation/time_offset.rb,
lib/reservation/event_filter.rb
Defined Under Namespace
Modules: EventFilter, Schedule, TimeOffset Classes: Event, MigrationGenerator, Reservation
Constant Summary collapse
- VERSION =
"0.1.0"
- DAY_MAP =
{ "sun" => 0, "mon" => 1, "tue" => 2, "wed" => 3, "thu" => 4, "fri" => 5, "sat" => 6 }
- MAP_DAY =
%w{ sun mon tue wed thu fri sat }
Class Method Summary collapse
-
.events ⇒ Object
replace this if you need to globally override the starting scope for events.
-
.reservations ⇒ Object
replace this if you need to globally override the starting scope for reservations.
- .table_name_prefix ⇒ Object
Class Method Details
.events ⇒ Object
replace this if you need to globally override the starting scope for events
3 4 5 |
# File 'lib/reservation/scopes.rb', line 3 def self.events ::Reservation::Event.all end |
.reservations ⇒ Object
replace this if you need to globally override the starting scope for reservations
8 9 10 |
# File 'lib/reservation/scopes.rb', line 8 def self.reservations ::Reservation::Reservation.all end |
.table_name_prefix ⇒ Object
10 11 12 |
# File 'lib/reservation.rb', line 10 def self.table_name_prefix 'reservation_' end |