Module: BirthControl
- Defined in:
- lib/birth_control.rb,
lib/birth_control/report.rb,
lib/birth_control/counter.rb,
lib/birth_control/railtie.rb,
lib/birth_control/version.rb,
lib/birth_control/extensions/controller.rb,
lib/birth_control/extensions/active_record.rb
Defined Under Namespace
Modules: Extensions
Classes: Counter, Railtie, Report
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.enable=(enable) ⇒ Object
6
7
8
|
# File 'lib/birth_control.rb', line 6
def self.enable=(enable)
@enabled = enable
end
|
.enabled? ⇒ Boolean
10
11
12
|
# File 'lib/birth_control.rb', line 10
def self.enabled?
!!@enabled
end
|