No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 213 commits behind inspire9:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
README.textile
Rakefile
eventifier.gemspec

README.textile

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