Module: BestBoy

Defined in:
lib/best_boy.rb,
lib/best_boy/engine.rb,
lib/best_boy/version.rb,
lib/best_boy/eventable.rb,
lib/best_boy/reporting.rb,
lib/best_boy/controller.rb,
app/models/best_boy/event.rb,
lib/best_boy/obeys_test_mode.rb,
app/models/best_boy/day_report.rb,
app/models/best_boy/month_report.rb,
app/helpers/best_boy/best_boy_view_helper.rb,
lib/generators/best_boy/install_generator.rb,
app/controllers/best_boy/events_controller.rb

Defined Under Namespace

Modules: BestBoyViewHelper, Controller, Eventable, Generators, ObeysTestMode, Reporting Classes: DayReport, Engine, Event, EventsController, MonthReport

Constant Summary collapse

VERSION =
'3.5.0'
@@base_controller =
"ApplicationController"
@@before_filter =
nil
@@custom_redirect =
nil
@@skip_after_filter =
nil
@@skip_before_filter =
nil
@@test_mode =
false

Class Method Summary collapse

Class Method Details

.in_real_mode(&block) ⇒ Object



28
29
30
# File 'lib/best_boy.rb', line 28

def self.in_real_mode(&block)
  execute_with_test_mode_set_to(false, &block)
end

.in_test_mode(&block) ⇒ Object



24
25
26
# File 'lib/best_boy.rb', line 24

def self.in_test_mode(&block)
  execute_with_test_mode_set_to(true, &block)
end

.setup {|_self| ... } ⇒ Object

Load configuration from initializer

Yields:

  • (_self)

Yield Parameters:

  • _self (BestBoy)

    the object that the method was called on



20
21
22
# File 'lib/best_boy.rb', line 20

def self.setup
  yield self
end