Skip to content

Timestamper allows you to automatically set http response's header Last-Modified with value from ActiveResource or ActiveRecord. Currently only supports ActiveResource.

Notifications You must be signed in to change notification settings

dorren/timestamper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use

Timestamper allows you to automatically set http response’s header Last-Modified with value from ActiveResource or ActiveRecord. Currently only supports ActiveResource.

Configuration

Timestamper.config do
  updated_at_column :updated_at  # global default column
end

class Article
  timestamper_column :last_modified  # custom timestamp column
end

To configure rack middleware in a Rails app, add following line to config/environment.rb.

ActionController::Dispatcher.middleware.use Timestamper::RackMiddleware

About

Timestamper allows you to automatically set http response's header Last-Modified with value from ActiveResource or ActiveRecord. Currently only supports ActiveResource.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages