Sha256: 5f20690122cc4a4abcdb004969dea25fccdcb094aabad6e681661bcbe8fe713d

Contents?: true

Size: 542 Bytes

Versions: 13

Compression:

Stored size: 542 Bytes

Contents

module Locomotive
  class ContentAssetsController < BaseController

    respond_to :json, only: [:index, :create, :destroy]

    def index
      @content_assets = current_site.content_assets
      respond_with(@content_assets)
    end

    def create
      @content_asset = current_site.content_assets.create(params[:content_asset])
      respond_with @content_asset
    end

    def destroy
      @content_asset = current_site.content_assets.find(params[:id])
      @content_asset.destroy
      respond_with @content_asset
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_cms-2.4.1 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.4.0 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.3.1 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.3.0 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.2.3 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.2.2 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.2.1 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.2.0 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.1.4 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.1.3 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.1.2 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.1.1 app/controllers/locomotive/content_assets_controller.rb
locomotive_cms-2.1.0 app/controllers/locomotive/content_assets_controller.rb