Module: ActiveScaffold::Actions::List

Defined in:
lib/active_scaffold/actions/list.rb

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



3
4
5
6
# File 'lib/active_scaffold/actions/list.rb', line 3

def self.included(base)
  base.before_filter :list_authorized_filter, :only => :index
  base.helper_method :list_columns
end

Instance Method Details

- (Object) index



8
9
10
11
12
13
14
# File 'lib/active_scaffold/actions/list.rb', line 8

def index
  if params[:id] && !params[:id].is_a?(Array) && request.xhr?
    row
  else
    list
  end
end