Class: Peek::Views::ActiveRecord
- Inherits:
-
View
- Object
- View
- Peek::Views::ActiveRecord
- Defined in:
- lib/peek/views/active_record.rb
Instance Method Summary collapse
- #context ⇒ Object
-
#initialize(options = {}) ⇒ ActiveRecord
constructor
A new instance of ActiveRecord.
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 = {} @type_tracking = .fetch(:type_tracking, false) setup_subscribers end |
Instance Method Details
#context ⇒ Object
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 |