Access Loggable
Rails gem that adds the method action!(title) for your ActiveRecord models.
Usage
class User < ActiveRecord::Base access_loggable
... end
class EventsController < ApplicationController
def index @events = current_user.events respond_to do |format| format.html { current_user.action!("events#index as HTML") } format.js do current_user.action!("events#index as JSON") render :json => @events.map(&:to_calendar) end end end
... end
TODO
- support MongoDB
- tests