Sha256: bf211edad7e5d7cb153d13176fc7bb3aead417334d87c2e525085b84f58d1d9c

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

# Controller to manage category as an admin.
# origin: M
class Admin::CategoriesController < ApplicationController

  does 'boring_controller',
    :order => 'categories.name'

  in_sections :admin_categories
  permissions :admin_categories

  private

  def collection_scope
    Category.roots.by_name
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/controllers/admin/categories_controller.rb
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/controllers/admin/categories_controller.rb
serum-rails-0.1.1 spec/test_app/app/controllers/admin/categories_controller.rb
serum-rails-0.1.0 spec/test_app/app/controllers/admin/categories_controller.rb