behaviour with Turbolinks enabled, optimizing Rabl for productionmaster
parent
da4b675aca
commit
85b00d19b8
@ -1,2 +1,5 @@ |
||||
$(document).on 'turbolinks:load', -> |
||||
window.MiniProfiler.pageTransition() unless typeof window.MiniProfiler == 'undefined' |
||||
$ -> |
||||
$(document).on 'turbolinks:load', -> |
||||
unless typeof window.MiniProfiler == 'undefined' |
||||
window.MiniProfiler.init() |
||||
window.MiniProfiler.pageTransition() |
||||
|
@ -0,0 +1,7 @@ |
||||
class NotificationWorker |
||||
include Sidekiq::Worker |
||||
|
||||
def perform(stream_entry_id, target_account_id) |
||||
SendInteractionService.new.(StreamEntry.find(stream_entry_id), Account.find(target_account_id)) |
||||
end |
||||
end |
@ -1,3 +1,6 @@ |
||||
Rabl.configure do |config| |
||||
config.cache_all_output = true |
||||
config.cache_sources = !!Rails.env.production? |
||||
config.include_json_root = false |
||||
config.view_paths = [Rails.root.join('app/views')] |
||||
end |
||||
|
Loading…
Reference in new issue