Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dansbeerlist committed Oct 31, 2013
1 parent fa61657 commit 59eb434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/shared_boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
#Empowered: adding converstation observer (if file exists)
#config.active_record.observers = [:cacher, :stream_item_cache]

if File.exist? ('observer_config.json')
duh = JSON.parse(File.open('observer_config.json'))
config.active_record.observers = duh.observers
if File.exist? ('#{RAILS_ROOT}/config/observer_config.json')
include_conversation_observer = JSON.parse(File.open('#{RAILS_ROOT}/config/observer_config.json'))
config.active_record.observers = include_converstation_observer.observers
else
config.active_record.observers = [:cacher, :stream_item_cache]
end
Expand Down

0 comments on commit 59eb434

Please sign in to comment.