| Class | LogEntriesController |
| In: |
app/controllers/log_entries_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/log_entries_controller.rb, line 26
26: def index
27: @offset = (params[:offset] || 0).to_i
28: @nrows = 5
29: @user = User.find(params[:user_id]).check_permission!(:administer)
30: @entries = RequestLogEntry.find :all,
31: :conditions => ["user_of_record_id = ?", @user],
32: :limit => @nrows,
33: :offset => @offset,
34: :order => "created_at DESC"
35: end
# File app/controllers/log_entries_controller.rb, line 37
37: def show
38: @entry = RequestLogEntry.find params[:id]
39: User.find( @entry.user_of_record_id ).check_permission!( :administer )
40: @pchecks = @entry.pcheck_log_entries.find :all, :order => "id ASC"
41: respond_to do |format|
42: format.html
43: format.js { render :layout => false }
44: end
45: end