class Subledger::Domain::ActiveCategory
Public Class Methods
sub_klasses()
click to toggle source
# File lib/subledger/domain/category.rb, line 126 def self.sub_klasses [ active_klass ] end
Public Instance Methods
attach(args)
click to toggle source
# File lib/subledger/domain/category.rb, line 130 def attach args account = args[:account] begin store.attach_account_to_category :category => self, :account => account rescue Store::AttachError => e raise CategoryError, e end account end
detach(args)
click to toggle source
# File lib/subledger/domain/category.rb, line 143 def detach args account = args[:account] begin store.detach_account_from_category :category => self, :account => account rescue Store::DetachError => e raise CategoryError, e end account end