whoops 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,10 @@ class EventGroupsController < ApplicationController
|
|
4
4
|
helper_method :event_group_filter
|
5
5
|
|
6
6
|
def index
|
7
|
-
|
8
|
-
|
9
|
-
else
|
10
|
-
Whoops::EventGroup.where(:_id.in => Whoops::Event.where(:keywords => /#{params[:query]}/i).collect{|e| e.event_group_id}.uniq)
|
11
|
-
end
|
7
|
+
query_document = event_group_filter.to_query_document
|
8
|
+
query_document.merge!(:_id.in => Whoops::Event.where(:keywords => /#{params[:query]}/i).distinct(:event_group_id)) unless params[:query].blank?
|
12
9
|
|
13
|
-
@event_groups =
|
10
|
+
@event_groups = Whoops::EventGroup.where(query_document).desc(:last_recorded_at).page(params[:page]).per(30)
|
14
11
|
|
15
12
|
respond_to do |format|
|
16
13
|
format.html
|
data/app/models/whoops/event.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Higginbotham
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-15 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|
@@ -239,10 +239,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
239
|
requirements: []
|
240
240
|
|
241
241
|
rubyforge_project:
|
242
|
-
rubygems_version: 1.8.
|
242
|
+
rubygems_version: 1.8.11
|
243
243
|
signing_key:
|
244
244
|
specification_version: 3
|
245
245
|
summary: A Rails engine which receives logs and provides an interface for them
|
246
246
|
test_files: []
|
247
247
|
|
248
|
-
has_rdoc:
|