Sha256: 2fdc520c714bdd0f2525000b6b59759c8abc6af524c8d2d5d2a9e471ac8bed00

Contents?: true

Size: 243 Bytes

Versions: 8

Compression:

Stored size: 243 Bytes

Contents

class RePipelineActivatedObserver < ActiveRecord::Observer

  def after_create(record)    
    RePipelineActivated.reset_cache(record.code)
  end
  
  def after_update(record)        
    RePipelineActivated.reset_cache(record.code)
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rules_engine-0.1.1 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.1.0 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.8 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.7 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.6 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.5 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.4 rails_generators/templates/app/models/re_pipeline_activated_observer.rb
rules_engine-0.0.3 rails_generators/templates/app/models/re_pipeline_activated_observer.rb