Sha256: 7bad225398f3e60dfc765a4002fe873435f3eecac86d017506894824ac0a5b9d

Contents?: true

Size: 352 Bytes

Versions: 7

Compression:

Stored size: 352 Bytes

Contents

require_dependency 'quadro/application_controller'

module Quadro
  class AssetsController < ApplicationController
    before_filter :authenticate_user!

    respond_to :js, :json, :xml

    def create
      asset.save
    end

    def update
      asset.update_attributes(params[:asset])
    end

    def destroy
      asset.destroy
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
quadro-0.5.6 app/controllers/quadro/assets_controller.rb
quadro-0.5.5 app/controllers/quadro/assets_controller.rb
quadro-0.5.4 app/controllers/quadro/assets_controller.rb
quadro-0.5.3 app/controllers/quadro/assets_controller.rb
quadro-0.5.2 app/controllers/quadro/assets_controller.rb
quadro-0.5.1 app/controllers/quadro/assets_controller.rb
quadro-0.5.0 app/controllers/quadro/assets_controller.rb