Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dm-timestamps

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dm-timestamps

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= dm-timestamps

DataMapper plugin which adds "magic" to created_at, created_on, et cetera.

= Using

This plugin works by looking for the "created_at," "updated_at," "created_on" and "updated_on" properties. If they exist, it does the right thing by setting them or updating them. The *at properties should be of type DateTime, while the *on properties should be of type Date.

Alternatively, you can have all of this setup for you if you use the "timestamps" helper:

timestamps :at # Add created_at and updated_at timestamps :on # Add created_on and updated_on timestamps :created_at, :updated_on # Add these only

FAQs

Package last updated on 13 Oct 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc