Class: Peek::Views::ActiveRecord

Inherits:
View
  • Object
show all
Defined in:
lib/peek/views/active_record.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ActiveRecord

Returns a new instance of ActiveRecord.



6
7
8
9
10
# File 'lib/peek/views/active_record.rb', line 6

def initialize options = {}
  @type_tracking = options.fetch(:type_tracking, false)

  setup_subscribers
end

Instance Method Details

#contextObject



12
13
14
15
16
17
# File 'lib/peek/views/active_record.rb', line 12

def context
  {
    :object_count => object_count,
    :object_types => object_types
  }
end