6 lines
151 B
Ruby
6 lines
151 B
Ruby
module FetchBackgroundImage
|
|
|
|
def self.with_model(model)
|
|
return model.background_image_url(:normal) unless model.background_image.file.nil?
|
|
end
|
|
end
|