Module: TimeJawn

Defined in:
lib/time_jawn/time_jawn.rb

Overview

The base module of the TimeJawn gem. Everything in here assumes that your model has a valid time zone in a attribute name time_zone or has been delegating one to somewhere else.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Automatically runs and adds ClassMethods to ActiveRecord::Base



6
7
8
# File 'lib/time_jawn/time_jawn.rb', line 6

def self.included(base)
  base.send :extend, ClassMethods
end