Sha256: 2ee2f846dd6180acf8742c1c6e568412c53b4f8e203ac96307f92bca453a1ca2

Contents?: true

Size: 468 Bytes

Versions: 10

Compression:

Stored size: 468 Bytes

Contents

class E9Vendors::VendorsController < Admin::ResourceController
  include E9Vendors::Controller

  respond_to :html, :js
  
  carrierwave_column_methods :logo, :context => :admin

  add_resource_breadcrumbs

  def create;  create!  { collection_path } end
  def update;  update!  { collection_path } end
  def destroy; destroy! { collection_path } end

  protected

  ##
  # IR
  # 
  def collection
    @vendors ||= end_of_association_chain.order(:name).all
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
e9_vendors-0.0.10 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.9 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.8 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.7 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.6 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.5 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.4 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.3 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.2 app/controllers/e9_vendors/vendors_controller.rb
e9_vendors-0.0.1 app/controllers/e9_vendors/vendors_controller.rb