jrichardlai / acts_as_editable_in_time

Simple plugin for model that the record could be modified after a period of time after update or create.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ActsAsEditableInTime
====================

This plugin allow to set a validation on time an ActiveRecord object after update or create date.

Options
=======

:after => :update or :create
:for => valid duration for the record

Example
=======

class Report << ActiveRecord::Base
	acts_as_editable_in_time :after => :update, :for => 10.hours
end

@report = Report.create
@report.editable? => true

Copyright (c) 2010 [name of plugin creator], released under the MIT license

About

Simple plugin for model that the record could be modified after a period of time after update or create.

License:MIT License


Languages

Language:Ruby 100.0%