Sha256: 085c784369c2f1bfb8c44dcbe770cefae2d25e2482c65e970d922b763bb09bc6
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module Spree module Admin class LogEntriesController < ResourceController private def collection return @collection if @collection scope = LogEntry.all scope = scope.where(:source_type => params[:source_type]) if params[:source_type] scope = scope.where(:source_id => params[:source_id]) if params[:source_id] @collection = scope.page(params[:page]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_log_viewer-1.0.0 | app/controllers/spree/admin/log_entries_controller.rb |