Sha256: 2aafdc6cd6806c51ced0bbaf0b2ad3ccf4f659aabf74104f699c656e8ef5ddf0

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

class Admin::StructuresController < Admin::BaseController
  include AbAdmin::Controllers::Tree

  load_and_authorize_resource

  #has_scope :visible
  #has_scope :un_visible

  protected

  def tree_node_renderer
    @tree_node_renderer ||= lambda { |r| link_to r.title, edit_structure_record_path(r), class: 'tree-item_link' }
  end

  def settings
    {index_view: 'tree'}
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 app/controllers/admin/structures_controller.rb
ab_admin-0.3.5 app/controllers/admin/structures_controller.rb
ab_admin-0.3.4 app/controllers/admin/structures_controller.rb
ab_admin-0.3.3 app/controllers/admin/structures_controller.rb
ab_admin-0.3.2 app/controllers/admin/structures_controller.rb
ab_admin-0.3.1 app/controllers/admin/structures_controller.rb
ab_admin-0.3.0 app/controllers/admin/structures_controller.rb