Class: ActiveSet::PaginateProcessor::ActiveRecordAdapter

Inherits:
BaseAdapter
  • Object
show all
Defined in:
lib/active_set/processors/paginate/active_record_adapter.rb

Instance Method Summary collapse

Methods inherited from BaseAdapter

#initialize, #return_set

Constructor Details

This class inherits a constructor from ActiveSet::BaseAdapter

Instance Method Details

#processObject



9
10
11
12
13
# File 'lib/active_set/processors/paginate/active_record_adapter.rb', line 9

def process
  return return_set unless @set.respond_to? :to_sql

  return_set(paginated_set)
end