Sha256: 33a861c15defb338318db7801d93e09cab767d6336dd83a7697f556c32d46314

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 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.2.3 app/controllers/admin/structures_controller.rb
ab_admin-0.2.2 app/controllers/admin/structures_controller.rb
ab_admin-0.2.1 app/controllers/admin/structures_controller.rb
ab_admin-0.2.0 app/controllers/admin/structures_controller.rb
ab_admin-0.1.2 app/controllers/admin/structures_controller.rb
ab_admin-0.1.1 app/controllers/admin/structures_controller.rb
ab_admin-0.1.0 app/controllers/admin/structures_controller.rb