carrierwave-mongoid-media/app/controllers/carrierwave/mongoid_media_controller.rb

10 lines
225 B
Ruby
Raw Normal View History

2013-03-11 20:21:59 +00:00
class Carrierwave::MongoidMediaController < ApplicationController
include CarrierwaveMongoidMediaController
private
def resource
@carrierwave_mongoid_media ||= CarrierwaveMongoidMedium.find(params[:id])
end
end