Sha256: 99a4ee83d7a758aa16701f7950f6e8e4e01f79719fd666d2d9d6ce375c104d9c

Contents?: true

Size: 828 Bytes

Versions: 1

Compression:

Stored size: 828 Bytes

Contents

Hublot
==================================

Hublot makes Facebook-style datetime-contextual datetimes a cinch for your ActiveRecord objects. 

Examples
==================================
####Comment created a just now:

    just now

####Comment created seconds or minutes ago

    10 seconds ago
    2 minutes ago
  
####Comment created today

    Today at 5:30PM
  
####Comment created yesterday

    Yesterday at 5:30PM
  
####Comment created this week

    Monday at 5:30PM
  
####Comment created last week

    Last Monday at 5:30PM
  
####After that:

    Monday, July 1 at 5:30PM
  
Use
=================================

    gem 'hublot'

Include Hublot in your ActiveRecord models:

    class Comment < ActiveRecord::Base
      include Hublot
    end
  
Call the pretty method in your views:

    <%= @comment.pretty %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hublot-0.0.1 README.md