Module: ActiveScaffold::Actions::List

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

Instance Method Details

#indexObject



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