From 600458997bc9c64593c3c04773c5a02ebfa52e5d Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 29 Oct 2015 16:44:50 +0000 Subject: [PATCH] Move cloudinary_image to models --- {lib => app/models}/cloudinary_image.rb | 0 app/models/photo.rb | 2 -- spec/factories/photos.rb | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) rename {lib => app/models}/cloudinary_image.rb (100%) diff --git a/lib/cloudinary_image.rb b/app/models/cloudinary_image.rb similarity index 100% rename from lib/cloudinary_image.rb rename to app/models/cloudinary_image.rb diff --git a/app/models/photo.rb b/app/models/photo.rb index 316143c..26fa3ea 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -1,5 +1,3 @@ -require 'cloudinary_image' - class Photo < ActiveRecord::Base has_and_belongs_to_many :categories diff --git a/spec/factories/photos.rb b/spec/factories/photos.rb index f0716fa..fe60121 100644 --- a/spec/factories/photos.rb +++ b/spec/factories/photos.rb @@ -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