class ErrorServerBase

Public Class Methods

configure_admin_list(section, field_name) click to toggle source

Static Methods

Calls superclass method ModelBase::configure_admin_list
# File lib/mrpin/core/error/error_server_base.rb, line 11
def self.configure_admin_list(section, field_name)

  case field_name
    when :_id, :md5, :stack_trace
      section.configure field_name do
        visible false
      end

    when :throws_count, :players_count
      section.configure field_name do
        column_width 60
      end

    else
      super(section, field_name)
  end

end
configure_admin_show(section, field_name) click to toggle source
Calls superclass method ModelBase::configure_admin_show
# File lib/mrpin/core/error/error_server_base.rb, line 31
def self.configure_admin_show(section, field_name)

  case field_name
    when :stack_trace
      section.configure field_name do
        pretty_value do
          value.join('<br>').html_safe
        end
      end

    else
      super(section, field_name)
  end
end
new(options = nil) click to toggle source

default constructor

Calls superclass method ModelBase::new
# File lib/mrpin/core/error/error_server_base.rb, line 89
def initialize(options = nil)
  super(options)
end
sort_by_for_admin_list(section) click to toggle source
# File lib/mrpin/core/error/error_server_base.rb, line 47
def self.sort_by_for_admin_list(section)

  section.sort_by :last_error_at
  section.configure :last_error_at do
    sort_reverse true
  end

end