mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Move cloudinary_image to models
This commit is contained in:
parent
85822636c3
commit
600458997b
@ -1,5 +1,3 @@
|
||||
require 'cloudinary_image'
|
||||
|
||||
class Photo < ActiveRecord::Base
|
||||
has_and_belongs_to_many :categories
|
||||
|
||||
|
||||
@ -4,6 +4,6 @@ FactoryGirl.define do
|
||||
factory :photo do
|
||||
title 'A Photo'
|
||||
description 'A lovely photo of a tree'
|
||||
image Rails.root.join('spec/fixtures/photo.jpg')
|
||||
image nil
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user