Sha256: bd8112196b42fdf5d2c5a3760328cff200ce7f4a520dbae2cf9ad32c64e1cc48

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"blogelator/models/post.js;FI"
pathname;TI"_/Users/brian/github/codelation/blogelator/app/assets/javascripts/blogelator/models/post.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ž‘LSI"length;Ti…I"digest;TI"%cbb044ed0289a9790fe3da12012d4afe;FI"source;TI"…(function() {
  "use strict";

  App.Post = DS.Model.extend({
    bodyHtml:     DS.attr('string', { defaultValue: '' }),
    bodyMarkdown: DS.attr('string', { defaultValue: '' }),
    createdAt:    DS.attr('date'),
    publishedAt:  DS.attr('date'),
    summary:      DS.attr('string'),
    title:        DS.attr('string'),
    updatedAt:    DS.attr('date'),

    publishedAtFormatted: function() {
      var publishedAt = this.get('publishedAt');

      if (Ember.isNone(publishedAt)) {
        return "Unpublished";
      } else {
        return moment(publishedAt).format('MMMM D, YYYY');
      }
    }.property('publishedAt'),

    updatedAtFormatted: function() {
      var updatedAt = this.get('updatedAt');

      if (Ember.isNone(updatedAt)) {
        return "Never";
      } else {
        return moment(updatedAt).fromNow();
      }
    }.property('secondsPassed', 'updatedAt')
  });

})();
;TI"dependency_digest;TI"%d1187655049adfef8a10c07bfa0efd7d;FI"required_paths;T[I"_/Users/brian/github/codelation/blogelator/app/assets/javascripts/blogelator/models/post.js;FI"dependency_paths;T[{I"	path;TI"_/Users/brian/github/codelation/blogelator/app/assets/javascripts/blogelator/models/post.js;FI"
mtime;TI"2014-04-14T20:57:18-05:00;TI"digest;TI"%cbb044ed0289a9790fe3da12012d4afe;FI"
_version;TI"%361c512b9086418778df946c0d278f91;F

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blogelator-0.2.5 spec/dummy/tmp/cache/assets/development/sprockets/c5348a26b2c297ab5889ae73637d25f5