Module: OpenProject::ServicePacks::Patches::EnumerationPatch

Defined in:
lib/open_project/service_packs/patches/enumeration_patch.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



24
25
26
27
28
29
30
31
# File 'lib/open_project/service_packs/patches/enumeration_patch.rb', line 24

def self.included(receiver)
		receiver.extend         ClassMethods
		receiver.send :include, InstanceMethods

		receiver.class_eval do
			after_create :update_sp_rates
	end
end