Module: Hammock::RestfulSupport
- Defined in:
- lib/hammock/restful_support.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hammock/restful_support.rb', line 3 def self.included base # :nodoc: base.send :include, InstanceMethods base.send :extend, ClassMethods base.class_eval { before_modify :set_editing # TODO Investigate the usefulness of this. # before_destroy :set_editing before_create :set_creator_id_if_appropriate before_create :set_new_or_deleted_before_save before_undestroy :set_new_or_deleted_before_save helper_method :mdl, :mdl_name, :editing?, :nested_within?, :partial_exists? } end |