Backbone ProtectedModel, WIP

This commit is contained in:
Gregory Eremin
2012-09-19 02:40:46 +04:00
parent 7cef7bfc9c
commit 95ac3e6eef
12 changed files with 69 additions and 33 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ class Album < ActiveRecord::Base
VA = "Various Artists"
def pic_safe
unless pic.nil?
pic
unless image.nil?
image.sized(:extralarge)
else
"/api/albums/#{id}/picture"
end
+1 -1
View File
@@ -14,7 +14,7 @@ class Artist < ActiveRecord::Base
}
def loaded?
image? && bio?
true
end
def update_image