Sha256: cdecc88b3a88f59375e65e130e7a970ed156045073fd65ada7408d626195933e

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

DateTime.class_eval do
  def json_string
    self.to_json.split("\"").last
  end  
end

ActiveSupport::TimeWithZone.class_eval do
  def json_string
    self.to_datetime.to_json.split("\"").last
  end  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
realogy-0.6.8 lib/realogy/app/models/date_time.rb
realogy-0.6.7 lib/realogy/app/models/date_time.rb
realogy-0.6.6 lib/realogy/app/models/date_time.rb
realogy-0.6.5 lib/realogy/app/models/date_time.rb