Sha256: 3a910afcd557779d4e5757c9148dbc16bd8ee0646bb1b21fe0b20b9effc21a61

Contents?: true

Size: 696 Bytes

Versions: 14

Compression:

Stored size: 696 Bytes

Contents

module Admin
  class AssetsController < BaseController

    sections 'assets'

    before_filter :set_collections_and_current_collection

    respond_to :json, :only => :update

    def create
      create! { edit_admin_asset_collection_url(@asset_collection) }
    end

    def update
      update! { edit_admin_asset_collection_url(@asset_collection) }
    end

    protected

    def begin_of_association_chain
      @asset_collection
    end

    def set_collections_and_current_collection
      @asset_collections = current_site.asset_collections.not_internal.order_by([[:name, :asc]])
      @asset_collection = current_site.asset_collections.find(params[:collection_id])
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/controllers/admin/assets_controller.rb
locomotive_cms-1.0.0.beta app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta12 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta11 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta10 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta9 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta8 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta7 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta5 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta4 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta3 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta2 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4.beta1 app/controllers/admin/assets_controller.rb
locomotive_cms-0.0.4 app/controllers/admin/assets_controller.rb