Skip to content

Commit 4b47eeb

Browse files
committed
add pry-rescue, and fix Team index building
1 parent f690909 commit 4b47eeb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ group :development, :test do
158158
gem 'launchy'
159159
gem 'letter_opener', github: 'alexrothenberg/letter_opener', branch: 'on_a_server'
160160
gem 'pry-byebug'
161+
gem 'pry-rescue'
161162
gem 'quiet_assets'
162163
gem 'syntax'
163164
gem 'annotate'

Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ GEM
326326
httpauth (0.2.1)
327327
i18n (0.6.11)
328328
inflecto (0.0.2)
329+
interception (0.5)
329330
ipaddress (0.8.0)
330331
jbuilder (2.1.3)
331332
activesupport (>= 3.0.0, < 5)
@@ -469,6 +470,9 @@ GEM
469470
pry-remote (0.1.8)
470471
pry (~> 0.9)
471472
slop (~> 3.0)
473+
pry-rescue (1.4.1)
474+
interception (>= 0.5)
475+
pry
472476
pry-stack_explorer (0.4.9.1)
473477
binding_of_caller (>= 0.7)
474478
pry (>= 0.9.11)
@@ -789,6 +793,7 @@ DEPENDENCIES
789793
omniauth-twitter (~> 0.0.16)
790794
pg
791795
pry-byebug
796+
pry-rescue
792797
pubnub (= 0.1.9)
793798
puma
794799
querystring

db/seeds.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ def self.create_protip_for(user)
149149
paboi.save!
150150

151151
unless Rails.env.staging? || Rails.env.production?
152-
Network.rebuild_index
152+
#Network.rebuild_index
153153
Opportunity.rebuild_index
154154
Protip.rebuild_index
155-
Team.rebuild_index
155+
156+
#Team.rebuild_index #TODO: Disabled until switched from mongo
157+
Team.all.each { |team| team.tire.update_index }
156158
end

0 commit comments

Comments
 (0)