Sha256: 89cfaac29c29c391b365091ed521688d5dc3c29e1ee246356c4c21e3b59d1ac6
Contents?: true
Size: 459 Bytes
Versions: 15
Compression:
Stored size: 459 Bytes
Contents
class Admix::PhotosController < Admix::InheritedController before_filter :image_param polymorphic_belongs_to :album, param: :album_id # load_and_authorize_resource :album # load_and_authorize_resource :photo, :through => :album_id skip_load_and_authorize_resource respond_to :json def upload render inline: params.to_s end def image_param if params[:image] params[:photo] = { image: params[:image] } end end end
Version data entries
15 entries across 15 versions & 2 rubygems