Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/lev/object.rb
Class Method Summary collapse
Class Method Details
.lev_handler(options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/lev/object.rb', line 13 def self.lev_handler(={}) class_eval do include Lev::Handler end # Do routine configuration [:skip_routine_include] = true lev_routine() # Do handler configuration (none currently) end |
.lev_routine(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/lev/object.rb', line 3 def self.lev_routine(={}) class_eval do include Lev::Routine unless [:skip_routine_include] # Routine configuration [:transaction] ||= Lev::TransactionIsolation.mysql_default.symbol @transaction_isolation = Lev::TransactionIsolation.new([:transaction]) end end |