spec/dummy/tmp/cache/assets/development/sprockets/10540929b00cc93cf8bbb830eea7c13e in blogelator-0.2.3 vs spec/dummy/tmp/cache/assets/development/sprockets/10540929b00cc93cf8bbb830eea7c13e in blogelator-0.2.4
- old
+ new
@@ -1,37 +1,37 @@
{I"
class:ETI"BundledAsset; 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+Í›SI"length; Ti›I"digest; TI"%cf77a299b1fdd676852dd4703d8421f1; FI"source; TI"›(function() {
+mtime; Tl+þ‘LSI"length; Ti…I"digest; TI"%c624b8825eda12f61df6248518717ac9; 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"required_assets_digest; TI"%1d4ec7ab54309a0d63e0ea6470d54b1c; FI"
_version; TI"%a56df69ef97ba4d9f1a23bf9b0add58a; F
+; TI"required_assets_digest; TI"%fa301b3fe327cc9485a8525b419e5bc1; FI"
_version; TI"%a56df69ef97ba4d9f1a23bf9b0add58a; F
\ No newline at end of file