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
Constant Summary collapse
- DATE_FORMAT =
'%a, %d %b %Y %H:%M:%S'
Class Method Summary collapse
-
.included(base) ⇒ Object
Automatically runs and adds ClassMethods to ActiveRecord::Base.
Class Method Details
.included(base) ⇒ Object
Automatically runs and adds ClassMethods to ActiveRecord::Base
12 13 14 |
# File 'lib/time_jawn/time_jawn.rb', line 12 def self.included(base) base.send :extend, ClassMethods end |