1
0
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:
Daniel Barber 2015-10-29 16:44:50 +00:00
parent 85822636c3
commit 600458997b
3 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
require 'cloudinary_image'
class Photo < ActiveRecord::Base class Photo < ActiveRecord::Base
has_and_belongs_to_many :categories has_and_belongs_to_many :categories

View File

@ -4,6 +4,6 @@ FactoryGirl.define do
factory :photo do factory :photo do
title 'A Photo' title 'A Photo'
description 'A lovely photo of a tree' description 'A lovely photo of a tree'
image Rails.root.join('spec/fixtures/photo.jpg') image nil
end end
end end