Module: Guacamole::Model::ClassMethods

Defined in:
lib/guacamole/model.rb

Overview

I know that this is technically not true, but the reality is a parse error:

Instance Method Summary collapse

Instance Method Details

#callbacks(name_of_callbacks_class) ⇒ Object



195
196
197
198
# File 'lib/guacamole/model.rb', line 195

def callbacks(name_of_callbacks_class)
  callback_class = name_of_callbacks_class.to_s.camelcase.constantize
  Callbacks.register_callback self, callback_class
end