Sha256: 9c00d5719522351bd14687e377a7fd878860f6c49cf6357a7f237a51c80fa1de

Contents?: true

Size: 164 Bytes

Versions: 40

Compression:

Stored size: 164 Bytes

Contents

class Date
  def to_json(*a)
    %("#{strftime("%Y/%m/%d")}")
  end
  
  def self.json_create string
    return nil if string.nil?
    Date.parse(string)
  end
end

Version data entries

40 entries across 40 versions & 6 rubygems

Version Path
couch_potato-0.2.24 lib/core_ext/date.rb
couch_potato-0.2.23 lib/core_ext/date.rb
couch_tomato-0.2.0 lib/core_ext/date.rb
couch_potato-0.2.22 lib/core_ext/date.rb
couch_potato-0.2.21 lib/core_ext/date.rb
couch_potato-0.2.20 lib/core_ext/date.rb
couch_potato-0.2.19 lib/core_ext/date.rb
couch_potato-0.2.18 lib/core_ext/date.rb
couch_potato-0.2.17 lib/core_ext/date.rb
couch_potato-0.2.16 lib/core_ext/date.rb
couch_tomato-0.1.5 lib/core_ext/date.rb
couch_potato-0.2.15 lib/core_ext/date.rb
couch_potato-0.2.14 lib/core_ext/date.rb
couch_potato-0.2.13 lib/core_ext/date.rb
couch_tomato-0.1.4 lib/core_ext/date.rb
couch_tomato-0.1.3 lib/core_ext/date.rb
couch_tomato-0.1.2 lib/core_ext/date.rb
couch_tomato-0.1.1 lib/core_ext/date.rb
couch_tomato-0.1.0 lib/core_ext/date.rb
couch_potato-0.2.12 lib/core_ext/date.rb