Module: BruteSquad
- Defined in:
- lib/brute_squad.rb,
lib/brute_squad/model.rb
Defined Under Namespace
Classes: Model
Class Method Summary collapse
Class Method Details
.configure(model, options = {}, &block) ⇒ Object
6 7 8 9 10 |
# File 'lib/brute_squad.rb', line 6 def self.configure(model, = {}, &block) returning configuration_for(model, ) do |config| config.instance_eval &block if block_given? end end |
.models ⇒ Object
2 3 4 |
# File 'lib/brute_squad.rb', line 2 def self.models @models ||= {} end |