Skip to content

pjmurray/eventifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eventifier

Event tracking and notifying for active record models

Features

Tracks and logs events on active record objects
Send notifications of events

Example

class EventTracking
include Eventifier::EventTracking

def initialize events_for Post do track_on [:create, :update, :destroy], :attributes => { :except => %w(updated_at) } notify :group => :members, :on => [:create, :update] end events_for Announcement do track_on :create, :attributes => { :except => %w(updated_at) } notify :group => :members, :on => :create end end

end

That’s it!

Requirements

  • ActiveRecord

Testing

Creating the database:

  • createdb eventifier

Spec
``
rspec spec
``

Contributors

  • PJ Murray

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%