Sha256: 1331d90b2be9842efca7a01be817fbc38a43c91c69106d39b20dd4f78e21cc5e

Contents?: true

Size: 338 Bytes

Versions: 12

Compression:

Stored size: 338 Bytes

Contents

class Adminsite::Admin::<%= @resource_class.gsub('::','') %>sController < Adminsite::Admin::ResourcesController

  private

  def order_params
    'ID DESC'
  end

  def self.resource_class
    <%= @resource_class %>
  end

  def resource_admin_config
    # Adminsite::Admin::ResourcesController.resource_admin_config
    super
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
adminsite-3.2.4 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.2.3 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.2.2 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.2.1 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.2.0 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.1.2 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.1.1 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.1.0 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-3.0.0 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-2.1.2 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-2.1.1 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb
adminsite-2.1.0 lib/generators/adminsite/add_resource/templates/controllers/admin_resource_controller.rb