Backbone ProtectedModel, WIP
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -14,7 +14,7 @@ class Artist < ActiveRecord::Base
|
||||
}
|
||||
|
||||
def loaded?
|
||||
image? && bio?
|
||||
true
|
||||
end
|
||||
|
||||
def update_image
|
||||
|
||||
Reference in New Issue
Block a user