Class: ActiveSupport::TimeWithZone

Inherits:
Object
  • Object
show all
Defined in:
lib/ripple/core_ext/casting.rb,
lib/ripple/core_ext/indexes.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = {}) ⇒ Object



134
135
136
# File 'lib/ripple/core_ext/casting.rb', line 134

def as_json(options={})
  self.utc.send(Ripple.date_format)
end

#to_ripple_index(type) ⇒ Object



64
65
66
# File 'lib/ripple/core_ext/indexes.rb', line 64

def to_ripple_index(type)
  utc.to_ripple_index(type)
end