Socket
Book a DemoInstallSign in
Socket

dm-zone-types

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dm-zone-types

0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

h1. dm-zone-types

Provides time zone aware data types for data mapper.

Whenver the property is set, it will be typecast to the Time.zone set in active support and be stored in the database as the timezone set in DataMapper::Zone::Types.storage_zone

h2. Installation

gem install dm-zone-types

h2. Usage


require 'dm-zone-types'

DataMapper::Zone::Types.storage_zone = "Melbourne" # default UTC

class MyClass
  include DataMapper::Resource

  property :id,         Serial
  property :some_time,  ZonedTime
end


FAQs

Package last updated on 08 Nov 2010

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.