Module: Yasm::Persistence::CouchRest::Model
- Defined in:
- lib/yasm/persistence/couchrest_model.rb
Defined Under Namespace
Modules: GetMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/yasm/persistence/couchrest_model.rb', line 5 def self.included(base) base.extend GetMethods base.before_save :save_yasm_states class << base alias_method_chain :create_from_database, :load_yasm_states end end |